Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM vs. CREATEOBJECT
Message
From
18/05/1998 13:31:32
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
 
 
To
18/05/1998 13:17:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00100139
Message ID:
00100141
Views:
60
>How would I convert "DO FORM xxx WITH yyy TO zzz" To "ofrm = CREATEOBJECT()"
>

SET CLASSLIB TO cClassLib ADDITIVE
oForm = CREATEOBJECT(ClassName [, eParameter1, eParameter2, ...])

The parameters are passed to the forms INIT method, so you'll need to use LPARAMETERS there.

>How do I return a value from an object when the object is created with "CREATEOBJECT()". Thanks.

With CREATEOBJECT you could directly read from the object whose value you are looking for.

theValue = oForm.txtStates.Value
Ryan Hirschey
Previous
Reply
Map
View

Click here to load this message in the networking platform