Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional GetFldState Excluding Specific Fields
Message
De
26/07/2001 09:42:45
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Conditional GetFldState Excluding Specific Fields
Divers
Thread ID:
00535632
Message ID:
00535632
Vues:
62
Ok, I have ended up with a situation that I'm not sure how to handle. I have four Comboboxes which use a compare of the original value to the current value to determine if a change has been made (cFieldState). This is due to what I consider a limitation Combobox behaviour, namely that it thinks the value has changed whether it actually has or not. On the same form I have other objects that are not Comboboxes. I normally use GetFldState to determine if there were changes, but now need to use it in conjunction with the value compares to know whether to handle for changed data. Two scenerios of this:

Not coding for the Combobox state
If '2' $ getfldstate(-1) and thisform.cFormMode $ 'C'
   Do something
Else
   Do nothing
Endif
Coding only for the Combobox state
If ThisForm.cFieldState = .T. and thisform.cFormMode $ 'C'
   Do something
Else
   Do nothing
Endif
Since the Comboboxes always return a 2 whether they have changed or not, how to combine the two so that I ONLY check for the GetFldState of the fields which are NOT tied to the Comboboxes? FYI, there are many fields for the view. Or another idea? Thanks!

Regards, Renoir
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform