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