Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid & DropDown Listbox enable / disable
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00577689
Message ID:
00577954
Views:
25
Drop-downs can't have their ReadOnly property set to .t. - from the docs:
For combo box controls, the ReadOnly property cannot be set to true (.T.) when the Style property is set to 2 – Drop-down List.

Cheers,

Andrew

>Nadya,
>
>I have put the following in the AfterRowColChange without any apparent effect:
>
>
>llReadWrite=EVALUATE(THIS.Column7.Picklist1.CONTROLSOURCE)="USER" OR RECNO("ActiveMembers")<=0
>
>THIS.Column7.READONLY=NOT llReadWrite
>THIS.Column7.Picklist1.READONLY=NOT llReadWrite
>THIS.Column7.Picklist1.REFRESH
>THIS.Column7.REFRESH
>
>
>Guess what, setting the read-only property on the column does not change a thing - the dropdown is still active.
>
>I wish I could include a screen shot of my debugger. It shows that the column has been set readonly, but the picklist has not, the condition of course evaluates to true.
>
>It looks like the property simply can not be set.
>
>This is extremely frustrating, since enabling / disabling of the dropdown does does not work properly either.
>
>
>>
>> You can set column.ReadOnly property
>>column.ReadOnly=myTable.myField="VALUE1"


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Reply
Map
View

Click here to load this message in the networking platform