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:
01133589
Views:
16
>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
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform