Dear All,
I am trying to use the GetControls to empty a number of textboxes from the form FE_Add with the slightly modified code from the helpfile:
ctrlnames() = GetControls(FE_Add.ControlRef)
For i = 0 To ArrayLen(ctrlnames())-1
If ControlType(ctrlnames(i)) = "TextBox" Then Control(ctrlnames(i)).Text = ""
Next
It works very well in the non-compiled and non-optimised compiled versions, but I get an error message when I try to compile an optimised file (see attached).
I suspect it is because FE_Add is a FormEx form (from Andrew's FormExDesktop) and that I haven't understood the helpfile from that dll completely...
Any ideas on what is wrong, and what I can do about it?
all the best / Björn
I am trying to use the GetControls to empty a number of textboxes from the form FE_Add with the slightly modified code from the helpfile:
ctrlnames() = GetControls(FE_Add.ControlRef)
For i = 0 To ArrayLen(ctrlnames())-1
If ControlType(ctrlnames(i)) = "TextBox" Then Control(ctrlnames(i)).Text = ""
Next
It works very well in the non-compiled and non-optimised compiled versions, but I get an error message when I try to compile an optimised file (see attached).
I suspect it is because FE_Add is a FormEx form (from Andrew's FormExDesktop) and that I haven't understood the helpfile from that dll completely...
Any ideas on what is wrong, and what I can do about it?
all the best / Björn