Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This one has me baffled
Message
From
30/03/1998 14:41:41
 
 
To
30/03/1998 14:37:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00088012
Message ID:
00088182
Views:
40
>It still sounds like to me a case of mixed meatphors -- part FPW procedural coding and part VFP OOPS. VFP supports the procedural syntax of the FPW functions ( i.e. Wexist() ), but that does not mean that an object name has been made available to you. Try adding the 'NAME' clause to the 'DO FORM'. I suggest a "Hungarian" notation, beginning the name with 'go' for global object -- of course to be 'global' you need to code something like: "PUBLIC goName", thus, you wil have something like:
>
>Public goName
>do form xxx name goName linked
>goName.Activate()
>
>When you have completed using the form, you may simply: RELEASE goName to get rid of it.

Robin, this idea will not work when you start modeless form from menu procedure because variable is gone when procedure gets finished. The only safe way is to check _SCREEN.Forms() collection or build oApp collection to your own.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform