Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning A value from a Class???
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00668213
Message ID:
00668232
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
Hi, Leroy!

You need the following:
* create or take any object, which has a "cMyState" property
* put the reference of this object into "loObject"
loObject = ...
oMyState = Createobject('GetState'<b>, loObject</b>)
oMyState.show()
** some how catch what ever state is chosen. 
*** (the way the form works is that on double click, it grabs the state
*** releases the form and returns the value to the textbox)

*** theory code
THIS.PARENT.RFI_TEXTBOX1.VALUE = ALLTRIM( loObject.cMystate  )
THIS.PARENT.VALUE = ALLTRIM( loObject.cMystate )
THIS.PARENT.VALID()
To makes this work you need:

- A "oLogicalParent" property in your GetState class!

- Code similar like this in the Init
LPARAMETER toLogicalParent
This.oLogicalParent = m.toLogicalParent
- Code similar like this whereever in your class
This.oLogicalParent.cMyState = "WhatEver"
SeBaFlu
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform