Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox Property Question
Message
 
 
To
30/07/2005 20:58:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01037312
Message ID:
01037315
Views:
24
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform