Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding last entered value in valid event, how to?
Message
De
07/06/2008 18:58:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
07/06/2008 01:53:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01322235
Message ID:
01322342
Vues:
15
>>>
>>>I have a field whose oldval() is A1.
>>>Let say user change it to A2 then A3 then A4 (multiple time before saving the record)
>>>
>>>In the valid event, when user key in A3, how do I know (programatically) the last entered value A2, similary, when user inputs A4, I need to know the last entered value A3.
>>>
>>>Is VFP equiped with something to find out the last entered value?
>>
>>No but you can build such functionality into your control base class by adding a 'Lastvalue' property and populate it at appropriate time.
>
>Thanks!
>Hard to believe VFP does not have this feature... anyway, I trust you :)

It's a rare requirement, but can be easily coded - your controls need to have an array or collection property which will store a new value on each .valid() (or .lostfocus() - your choice) and will be cleared on save. Then you'll have a way of undoing and redoing changes.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform