Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Getfldstate() function
Message
 
À
29/01/1999 11:20:19
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00181846
Message ID:
00181873
Vues:
11
>I am trying to determine when a field is changed. The code I am using is
>below. At runtime the controlsource = customer.contact. When the program
>executes line 3 I get an "function argument, type, or count is invalid" error.
>The parameter that is passed to the getfldstate() function is a fieldname.

>PRIVATE lcfldstate, lcfiedname
>lcfieldname = this.controlsource
>lcfldstate = GETFLDSTATE(lcfieldname)
>IF lcfldstate <> 1
> Thisform.textbuttons1.cmdedit.click
>ENDIF

Found it, but it isn't really intuitive. If you pass it 'alias.field' it chokes, if you pass it 'field' it works. Trim the alias out of lcFieldName, and you should be all set....
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform