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:
01133654
Views:
16
>Then the code should be:
>
>With Thisform
>     .txtOperator.enabled    = EMPTY(this.Value)
>     .cboOperators.enabled   = EMPTY(this.Value)
>     .lValidOp		     = EMPTY(this.Value) OR .nOpCode
>     .lmEnablePrint()
>EndWith
>
>:o)

Or one line shorter:
With Thisform
   store empty(this.value) to ;
 .txtOperator.enabled, ;
     .cboOperators.enabled  
     .lValidOp		     = EMPTY(this.Value) OR .nOpCode
     .lmEnablePrint()
EndWith
I'm using STORE operator every time I need to assign the same value to more than one variable. Read in some thread it's quicker than = operator and also shortens the code a little bit.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform