Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETALL method for columns in a grid
Message
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:
00982370
Vues:
36
>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.Enabled = .F.
>ELSE
>  thisform.pageframe1.page1.basecont1.grdbase1.Enabled = .T.
>ENDIF
>
>
>OR
>
>
>IF invoice.status = "FINI"
>  thisform.pageframe1.page1.basecont1.grdbase1.ReadOnly = .T.
>ELSE
>  thisform.pageframe1.page1.basecont1.grdbase1.ReadOnly = .F.
>ENDIF
>
a little improvement
thisform.pageframe1.page1.basecont1.grdbase1.Enabled = Not (invoice.status = "FINI")
.......
DO WHILE .T.
      ME.Work()
ENDDO
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform