Open Form & pass Property (1 Viewer)

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 19:12
Joined
May 21, 2018
Messages
8,527
There are two cases I can think of where you have to use openargs or tempvars or global variables. The first is if you open the form using the ACDIALOG argument. The reason is that code execution stops in the calling form until the called form is closed. So there is no way to set properties or pass arguments because the code is halted in the calling form. The second case is if the value is needed immediately in the on load.
I know in VB.NET this is not the case. You can instantiate a form object without opening the form. This means prior to opening you can set all properties of the form both intrinsic and custom.
 

kirkm

Registered User.
Local time
Today, 11:12
Joined
Oct 30, 2008
Messages
1,257
I think Excel is similar. If I remember correctly you can Load a Form, do stuff, then Show it.
 

Users who are viewing this thread

Top Bottom