Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limiting choice in drop down list
Message
From
05/10/1998 23:07:15
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
To
05/10/1998 22:56:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00143999
Message ID:
00144101
Views:
31
I'll give it atry along with Jim's suggestion. I thihk it has to do with the RowSourceType which for me is 3. The disable might only work with None or Array.


>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 >.
***************************
Bruce Gilmour

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

Click here to load this message in the networking platform