Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETALL method for columns in a grid
Message
From
31/01/2005 10:23:29
 
 
To
31/01/2005 09:58:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00982234
Message ID:
00982249
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
Andrew

If it's the enabled prop of the columns you want to set then your setall was deficient. to wit:


... thisform.pageframe1.page1.basecont1.grdbase1.setall("enabled",.f.,"Column")

Terry


>I am trying to disable a grid from having items edited if an invoice is finished. The code I am trying is as follows:
>
>
>
>IF invoice.status = "FINI"
>	thisform.pageframe1.page1.basecont1.grdbase1.Columns.setall("enabled",.f.)
>ELSE
>	thisform.pageframe1.page1.basecont1.grdbase1.Columns.setall("enabled",.t.)
>ENDIF
>
>
>
>
>I am getting an error that columns is an unknown member, although intellisense is offering it to me when I am doing the coding. What is the correct method to do what I am trying to do?
>
>Thanks in advance.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform