Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Changes its mind over Checkbox
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133547
Message ID:
01133596
Views:
15
Alright, you've cut down my code a bit :-)

But what do you mean by && I hope this.Value is not for CheckBox ?

And still noone's answeered how/why the checkbox changes its data type.


>>But I've still got to test for 1/0 or T/F, as below:
>>
>>
>>With Thisform
>>  If this.Value <> .F.			&& so no need choose operator
>>      .txtOperator.enabled	    = .F.
>>      .cboOperators.enabled	    = .F.
>>      .lValidOp		    = .T.
>>  Else					&& Allow choose an operator
>>      .txtOperator.enabled	    = .T.
>>      .cboOperators.enabled	    = .T.
>>      If not EMPTY( .nOpCode)
>>          .lValidOp	    = .T.  	&& already got an operator from previous choice or default
>>      Else
>>	 .lValidOp	    = .F.
>>      EndIf
>>  EndIf
>>  .lmEnablePrint()
>>EndWith
>>
>>
>>
>>???????????????????/
>
>
>
>With Thisform
>  If this.Value		            && I hope this.Value is not for CheckBox
>    .txtOperator.enabled    = .F.
>    .cboOperators.enabled   = .F.
>    .lValidOp		    = .T.
>  Else					&& Allow choose an operator
>      .txtOperator.enabled  = .T.
>      .cboOperators.enabled = .T.
>      .lValidOp             = NOT EMPTY(.nOpCode.Value)
>  EndIf
>  .lmEnablePrint()
>EndWith
>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform