Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox Property Question
Message
 
 
À
30/07/2005 20:58:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01037312
Message ID:
01037315
Vues:
23
Jimmy,

You can use 'This' to reference a control from within it's methods. A checkbox can be either bound to a logical or numeric value. By default unbound checkbox has numeric values with 0 representing False, 1 - True and 2 - Null.
* Checkbox Interactive change 
* Numeric
IF This.Value = 1      && True
...
* Logical
IF This.Value       && True
...
>How do I differenate between when the checkbox has been checked or unchecked? I need to put the following code in:
>
>When checked - Thisform.CtGrid1.LockedColumns = 2
>When Unchecked - Thisform.CtGrid1.LockedColumns = 0
>
>I tried putting this in the click event but it fails
>
>IF Thisform.Check1 = .T. then
>Thisform.CtGrid1.LockedColumns = 2
>ELSE
>Thisform.ctGrid1.LockedColumns = 0
>ENDIF
>
>Sorry, new. really trying and actually getting somewhere. Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform