Parameter type control in form

Hello When you list local parameters on a form event trigger (onvalidate, …), at the end of the list, you have an unnamed parameter type control. Is anybody knows why ? and can i have a Self reference to the control ? like : onformat() IF Self.ENABLED THEN … Thanks in advance Patrick

Patrick, Sorry but I don’t understand the first part of your post. The second part, what you would do is give the control a name (through the properties window) eg. ctlCode Then you could use the following code; IF CurrForm.ctlCode.ENABLED THEN Hope this helps.

quote:


Originally posted by PATO
Hello When you list local parameters on a form event trigger (onvalidate, …), at the end of the list, you have an unnamed parameter type control. Is anybody knows why ? and can i have a Self reference to the control ? like : onformat() IF Self.ENABLED THEN … Thanks in advance Patrick


Mhmm … if in the grey column on the left you see an arrow, that it’s just the parameter form ready to accept input on the first line, but there are no parameters yet; you don’t see an arrow that means that you tampered with the form and an unnamed parameter has been registered, but I don’t know whether it could be used and how it might be referred at. Anna