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:
01133596
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform