Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting object references to forms
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00382212
Message ID:
00382224
Views:
15
In that case use DO FORM formname NAME oFormName - this will give you an object reference variable of oFormName - here you can query oFormName.Name to return the form's name.

You could also use an array element for the object reference but this will have to exist already.

>That was quick. What I am trying to do may not be worth doing this way, but I'd like to know if it's possible. Part of the idea here is not to have to redo my whole application. I figure there have to be uses for the hypothetical functions I'm looking for. The function I have given has already proved useful to me.
>
>>The best way to do this would be to save your forms as classes and use CreateObject or NewObject to create an instance of your form.
>>
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform