Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding an object to a form from a called prg in the init
Message
From
09/10/1999 01:55:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Adding an object to a form from a called prg in the init
Miscellaneous
Thread ID:
00274555
Message ID:
00274555
Views:
62
How do you reference a form from a called program inside that forms init.

Example:

MyForm Init
DO PROGRAM showformname



showformname.prg:
WAIT WINDOW "Form Name: " + myform.name


myform is not valid inside the forms init as a reference.

I even tried DO FORM MyForm NAME MyForm and then reference myform.name again in the program. Didn't work.

I must be missing something simple here, I cannot believe you cannot reference the form.

_____________________________
Man this UT imput page is frustrating, if you get a UT error like "you forgot to pick a catagory" and then hit back key all your text is erased. I keep having to copy all the text in case I get another error.
Next
Reply
Map
View

Click here to load this message in the networking platform