Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a variable for the rowsource value
Message
From
22/11/2002 13:38:48
 
 
To
22/11/2002 13:29:03
Mary Amozig
Software Answers, Inc.
Orlando, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00725901
Message ID:
00725911
Views:
8
Mary,

You can change the rowsourceType to 'Alias', then at any point in time you can issue your select statement in code. SELECT into a cursor, and put the name of the cursor in the rowsource. Issue a listbox.requery() after the SELECT statement.


>I am trying to pass conditional variables into a rowsource in a combo box. Basically, what I want to do is adjust the 'where' clause by adding either nothing to it or an ' AND npropid = lnpropid'. I tried using an iif construction in the where clause, but that didn't work. Then I tried doing a 'TEXT TO variable TEXTMERGE' and putting the variable into rowsource, but that didn't work either.
>
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform