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

_how_: It returns an error that the current control doesn't have a controlsource property.

_where_: on a form that has a pageframe that has a page that has a commandgroup that has a button that has a click event that generates the grid.

pls note: You recognize the lack of the need for where, since you say "whereever" below.

How is also not important.

I feel like I am getting yelled at for not giving complete enough information, however, the answer that Bruce gave me was exactly what I needed to know, and he gave it to me from my original post. When you start placing so much emphasis on your words, _how_, _where_ then I "hear" them in a very strong, stern tone a voice, kinda like a nun would use if she caught me being naughty. (Go ahead, tell me I am just being a wimp. :-)

I know that there are others here that have been posting too brief descriptions of their problems. I really try to avoid doing that, but I also try to avoid posting un-necessary detail.

I don't want to be yelled at, I am doing my best, and I think this time it might have been undeserved. I am sorry if you are having a bad day, or if I am annoying you. If I could, I'd buy you a beer -- But the best I can do is a Zen-Handshake, ok?

>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?
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform