Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting choice in drop down list
Message
From
05/10/1998 22:56:01
 
 
To
05/10/1998 22:33:16
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00143999
Message ID:
00144099
Views:
30
I don't understand why it doesn't work for you. This code works fine for me
Dimension This.aFieldName[3,2]
This.aFieldName[1,1]="\Last Name"
This.aFieldName[1,2]="SearchTable.dHire"
This.aFieldName[2,1]="\Date of Hire"
This.aFieldName[3,2]="SearchTable.cLastName"
This.aFieldName[3,1]="Social Security #"
This.aFieldName[3,2]="SearchTable.cSSN"
This.Rowsource=This.Rowsource

The first 2 items are disabled. The last line, which looks ridiculous, is vital. The RowSource remains the same -- even though the contents have changed -- until you explicitly tell it to change. I don't know how you're loading your ComboBox, AddItem ir what, but try resetting the RowSource.

>Tried it both ways - with and without a space - with and without a dash - the only thing I didn't try was a >.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform