General information
Category:
Coding, syntax & commands
>I've used "Thisform" extensively when reading data from a control into a local variable, i.e., "lcTextOutput1Value = thisform.text_output1.value" but I don't know how to reference this control from a different form. For instance, let's say form "A" has a text_output control1, just mentioned above, and I have a commmand button on that form that launches form "B." How do I reference the form A control directly when focus is on form "B?"
>
>I'm sure there's an easy way to reference a form's controls directly by just using the form's name instead of "thisform" but I haven't figured it out yet.
>
As you already have a couple of hints on how to send a form reference via init. Another way is to check for _screen.activeform in the new form's load. It is *not* as clean or elegant, but it might be necessary if you need to access some old form properties before the form init.
HTH
thomas
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