Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No return value
Message
De
29/11/2001 12:49:14
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00587517
Message ID:
00587575
Vues:
27
This message has been marked as the solution to the initial question of the thread.
Hi Chuck,
For forms created from a class you must handle this a little differently. Do the Show(), but when the user is done picking, hide the form. This stops the wait state and allows you to read the properties of the form. Then you can release it. Look at it this way: you created it and so you should release it.
oForm= NEWOBJECT("CBOForm", "SomeClassLib")
oForm.Show()
* The users picks or cancels and you hide the form.
* Now processing can continue here.
cVal = oForm.Value && Assuming combo is bound to a custom property, Value.

oForm.Release()


>I have create a form class that shows only a combobox. I create the object reference and set the combobox properties by code, the next code is "cVal = oCBO.show()". The combobox displays a list of tables and is suppose to return a selected table. I have a form property value and it has the correct value when I passed it in the combobox Valid or Destroy event . In the form UnLoad event is the RETURN thisform.pValue. It don't work, I'm crosseyed(and gettin over the flu)...Help!
Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform