Hi Leroy.
What I want to do is:
oMyState = Createobject('GetState')
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
lcMystate = oMystate.value
THIS.PARENT.RFI_TEXTBOX1.VALUE = ALLTRIM(lcMystate)
THIS.PARENT.VALUE = ALLTRIM( lcMystate)
THIS.PARENT.VALID()
oMyState is an object reference to the form. What you need to do is, instead of releasing the oMyState form in the dblClick of the ListBox, just hide it. That way the calling form has access to all of the properties of the oMyState form. After the calling form gets what it needs (something like this):
lcMyState = oMyState.LstStates.Value
It can then release the oMyState form like this:
oMyState.Release()
Of course, if you want to be a bit more proper, just add a method to the oMyState form class called GetState and have the calling form call on that method to get the value of lcMyState instead of accessing the oMyState form class's properties directly.
HTH
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement