Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATEOBJECT() Command
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00440743
Message ID:
00440884
Views:
10
Marcia,

Thanks. I have ended up putting the commands I needed in a function in the Stored Procedures of the project, and the Class on which the object is based is already set to "1-Modal".

Seems to be working OK. Do you forsee any problems with that?

Thanks
Elgin

>Hi Elgin.
>
>>> Why is it I can type frm=CREATEOBJECT("Form") in the VFP command window and have an object created, but when I put it in a PRG file and run it the object doesn't get created? <<
>
>The variable "frm" is global in scope when you issue the CREATEOBJECT() from the command window. As Garrett and Anthony have already mentioned, you have a scoping problem here.
>
>If you want the form to stay up and wait for user input before the prg continues on its merry way, you need to change it's windowType to 1-Modal. The default is Modeless. When you call the form's Show method, just pass a parameter of 1.
>
>Marcia
Elgin Rogers
Epic Solutions
www.epicsolutions.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform