Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using thisform in ComboBox.RowSource
Message
From
08/11/2013 15:44:06
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
08/11/2013 13:59:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01587572
Message ID:
01587582
Views:
69
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform