Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listbox problem
Message
 
À
30/08/1996 22:37:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00007044
Message ID:
00007065
Vues:
34
>Im using a listbox on a modal form to return a value to a
>calling form and it isnt working. When I enter the
>value to a textbox on the form it works fine. How do I
>access the value in the list box place it in the variable
>the modal form is returning?

Chris

Try this:

Create a property in the calling form to hold a return value. Pass the calling form name as a parm to the called form. Then assign it to a form property (create one if you must).

lcX = thisform.CallingForm + '.RetVal = ' + thisform.listbox.value

&lcX

Now you have returned the value to the calling form. One benifet is your called form does not have to be Modal.

HTH,
Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform