Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling Check Boxes
Message
De
18/03/1999 09:43:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
18/03/1999 08:40:46
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00199136
Message ID:
00199178
Vues:
20
>I tried your suggestions, here is my code. It wasn't working.
>The variable associated with my check box is nMultiOrd. I put this code in the Setup code for the screen.
>
>cStorePC = getenv("MACHINE$DEPT2")
>if alltrim(upper(cStorePC)) <> "ORDERING"
> SHOW GET nMultiOrd DISABLE
>endif
>
>Thanks again,
>
>Scott
Hi,

This code must run during the READ. Usually a field will be enabled or disabled during validation of another field.

A good place to put code that needs to run as the READ is starting in in a READ ACTIVATE procedure.

So, in the screen builder, go to the READ ACtivate snippet, ensure that it is defined as a procedure, not an expression, then add your code:-

cStorePC = getenv("MACHINE$DEPT2")
if alltrim(upper(cStorePC)) <> "ORDERING"
SHOW GET nMultiOrd DISABLE
endif
RETURN .t.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform