Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cbo rowsource expression including its own properties
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Cbo rowsource expression including its own properties
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01294366
Message ID:
01294366
Views:
70
All,

if a cbo has properties of .nMinValue and .nMaxValue

how do I set a sql query type row source to use them?

ex: SELECT description, id FROM sizes where size.id >= this.nMinValue and size.id <= this.nMaxValue

I place the control on the form after the form is up, in the valid() of another cbo on the form

.AddObject("MyCboName", "MyCboClass")

the .addobject() complains that at line 0 the property nminvalue is not found.

I assumed the properties existed, with values, before the rowsource evaluated

TIA
Al Allison
Next
Reply
Map
View

Click here to load this message in the networking platform