Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning A value from a Class???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00668213
Message ID:
00668232
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform