Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie Question - Setting a logical
Message
From
20/05/2002 11:28:30
 
 
To
20/05/2002 11:00:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658894
Message ID:
00658910
Views:
14
>I have a checkbox on a form. If it's checked, it appears to hold the value '1'.
>
>I want to have my code determine if the box is check with less code than:
>
>if (thisform.checkbox1 = 1) then
>endif
>
>
>I would like:
>
>LOCAL llDoRecap as Boolean
>
>llDoRecap = (thisform.checkbox1 = 1)
>
>if llDoRecap then
>endif
>
>Since I will be checking llDoRecap many times.
>
>What am I doing wrong?
>
>thanks.

You could use a logical variable, initialised to .F. or .T. & set that as the ControlSource property for the control & use it directly rather than need to use thisform.checkbox1.value
Len Speed
Previous
Reply
Map
View

Click here to load this message in the networking platform