Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETALL method for columns in a grid
Message
De
31/01/2005 10:15:14
 
 
À
31/01/2005 09:58:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00982234
Message ID:
00982244
Vues:
23
>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.


Andrew,

drop the columns
=thisform.pageframe1.page1.basecont1.grdbase1.SetAll('Enabled', invoice.status <> 'FINI')
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform