Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Changes its mind over Checkbox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01133547
Message ID:
01133589
Vues:
17
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform