Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid.setall & controlsource
Message
From
30/06/1999 15:54:24
 
 
To
30/06/1999 12:48:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235995
Message ID:
00236127
Views:
12
Todd-

_How_ is it not working? _Where_ are you issuing the command from? The reason it's not working is that the condition is being evaluated when you make the call. It's not being reevaluated for each column in the grid.

So, whereever you are calling the command (the "this")--it's controlsource is being compared to "myfield" and _that_ value is being passed to SetAll().

You could try setting the condition in each column's refresh, but it is just one column that will be the expection, then I'd go with Bruce's advice.

HTH

>I would like to set the readonly = .t. for all columns in a grid, except one. I tried something like:
>
>ohere.mygrid.setall("readonly", this.controlsource # "myfield", "Column")
>
>It doesn't work. Is there another way to do it?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform