Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting choice in drop down list
Message
From
05/10/1998 18:42:36
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
To
05/10/1998 16:11:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00143999
Message ID:
00144062
Views:
29
>Assuming you have and Add/Edit mode, change the SQL Select which generates the list to add "and FileName.InspectorActive" to the "Where" clause when they are in such a mode. ReQuery when changing modes.
>
>Some people put a slash in front of the value ("/John Jones") and this caused the item to be viewable, but not selectable. I've always found this to be a pain and screws around with the incremental search. It's easier to just get it out when it shouldn't be there.
>
>jt
>
Actually, this would have been my preferred method (only 20-30 records in the inspectors table) but it doesn't seem to work in drop down lists (unless I am doing it wrong - which is a distinct possibility). To test it I entered an inspector "/George Jones" (w/o the quotes) and it displayed the name normally and allowed me to select it. It seems I may be stuck with some messy validation code that will warn the user when they choose an inactive inspector. Not elegant at all!
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform