Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing variables between two combo boxes
Message
From
21/01/2013 10:00:14
 
 
To
21/01/2013 09:07:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01563450
Message ID:
01563483
Views:
53
>>I have a form with two combo boxes. The output from the first (i.e. the controlsource - say Thisform.var1) is to be used to determine the data displayed in the second combobox by means of a filter based on var1 in an SQL statement in the RowSource. What is the best way to pass the controlsource to the SQL statement? Thisform.var1 is not allowed in the SQL statement in the rowsource. I have got round it by using a private variable in the form but I feel this is not the correct way to do it.
>
>Here's another approach (albeit written before we had BindEvent):
>
>http://tomorrowssolutionsllc.com/Articles/granr09.PDF
>
>Tamar
Thanks for the input Tamar. Nice to see a bit of good old code still very usable. :-)
Barry.
Previous
Reply
Map
View

Click here to load this message in the networking platform