Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Changes its mind over Checkbox
Message
From
05/07/2006 05:35:25
 
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:
01133751
Views:
13
>>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
>
Erm, that example is 1 line longer and, even if you didn't break one line, it's still 6 lines long, same as Boris's.

Mind you, Naomi, I've never known your code examples to be, shall we say, brief :-)

>
>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.

I do too, esp. at initialisations.
- 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