Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Changes its mind over Checkbox
Message
From
04/07/2006 10:14:20
 
 
To
04/07/2006 10:07:23
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:
01133593
Views:
15
Oh, you're saying EMPTY() works for .F. or 0? Gotcha.

I thought you meant testing for not having either T or F in it. :-)

>>
>>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 !empty(this.Value)		&& 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
>>
>>
- 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
Reply
Map
View

Click here to load this message in the networking platform