Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using thisform in ComboBox.RowSource
Message
De
08/11/2013 15:44:06
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
 
 
À
08/11/2013 13:59:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01587572
Message ID:
01587582
Vues:
68
Jim,

Try,

In thisform.MyObject.LostFocus method put:
thisform.ComboBox.RowSource = "SELECT * FROM MyTable WHERE MyField = '" + thisform.MyObject.Text + "'"
Obs.: I suppose that "thisform.MyObject.Text" is a text.
Obs2.: You can put the code in another method (not only in "LostFocus").

Good luck!!!


>I want to use:
>SELECT * FROM MyTable WHERE MyField = thisform.MyObject.Text
>in ComboBox.RowSource property but I get error message that Thisform can be used only in methods.
>
>How to solve this?
Erick
Força Sempre!
Strength Always!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform