Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Return a Value From An Object
Message
From
17/06/2003 16:27:32
 
 
To
17/06/2003 16:16:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00800953
Message ID:
00800957
Views:
27
You would do this in one of two ways. The first is to have a custom method that changes the value, then returns the new value:
ox=CREATEOBJECT("MyObj")
SomeValue = ox.MyMethod()
The second is to set a custom property of the object
ox=CREATEOBJECT("MyObj")
ox.SomeMethod()
SomeValue = ox.MyProperty
>Hello
>
>Is there a way to return a value from a class object other than
>to create a public var that gets reassigned INSIDE the object?
>
>Public myVar
>myVar = ""
>oMyObj=createobject('myObj')
>oMyObj.Show()
>**_ change the var via some action in the object
>?myVar
>
>Thank you
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform