Information générale
Catégorie:
Codage, syntaxe et commandes
>>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....
That's the first thing I was going to try. I guess I don't need to now. You beat me to it. :) Well, there you go, Jim.
-Michelle
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement