Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'NAME' clause of DO FORM
Message
From
09/09/1998 14:50:34
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00134714
Message ID:
00134719
Views:
13
>I have a form that I start up with
>DO FORM blah NAME blahhandle
>
>Now while I'm in another form, I can reference 'blah's properties and such by looking at 'blahhandle.property'
>
>Ok, so far so good...
>
>Now I call another form while the first form is open, again using the NAME clause (with a different name) and I CAN NOT REFERENCE that new name!
>
>DO FORM second NAME sechandle
>
>MY second form pops open, but the object 'sechandle' IS NOT defined
>
>Anybody have any ideas?
>
>Thanx!

You can avoid these problems using something better defined and scoped:
DO FORM myform NAME oApp.myform LINKED
Now you can always refer to this form from any place of your application e.g. oApp.Myform.Caption="...."
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform