General information
Category:
Coding, syntax & commands
>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. Obviously I am doing something wrong, but I don't know what.
>
>Any ideas anyone?
>
>Jim
>
>
>PRIVATE lcfldstate, lcfiedname
>lcfieldname = this.controlsource
>lcfldstate = GETFLDSTATE(lcfieldname)
>IF lcfldstate <> 1
> Thisform.textbuttons1.cmdedit.click
>ENDIF
I _think_ that it's expecting the name as a string, as in ("MyField"). I'm not positive about this. My brain is refusing to cooperate at the moment, so I can't think how to do that with a variable. Maybe &lcfieldname?
-Michelle
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only