Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I check of a txt box value has changed
Message
De
25/08/1998 03:31:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
24/08/1998 19:42:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00129277
Message ID:
00129587
Vues:
24
>>Is there a fuction to tell me if a text box value has changed during an edit. I show data on a form with all the txt boxes disabled. The user can hit an EDIT command button that then enables all txt boxes and then a SAVE or CANCEL button. I know of several ways to do it programmatily but is there an easy way?
>
>John,
>
>The easiest way I know of is also probably the oldest. In you abstract textbox class, add the property .oldValue.
>
>In the GetFocus() event of the control, add the line:
>
>.oldvalue = .value
>
>Now if the user edits the value, .oldvalue will not be equal to value -- something that is easy to check at any time.
>
>regards,
Aha, he was talking about table data changes, not textbox.value changes ? Then it's easier to use buffering and check oldval() vs value.
-A textbox class could set a flag on.
-Getfldstate(-1)
-Getnextmodified() (Maybe has grid too)
-scatter memvar name beforedit
scatter name afteredit
lDataChanged=compobj(beforeedit,afteredit)
-oldval(), curval()
and so on.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform