Hi Steve,
Thanks a lot, but this is not
MY code. I'm also a great believer in one-lines, and in my optimized copy of our classes I used only this technique everythere.
Anyway, thanks for the support (see the whole thread).
>Slightly off topic ...
>
>your code
>
>IF THISFORM.ADD_MODE OR THISFORM.EDIT_MODE
> this.enabled=.t.
>ELSE
> this.enabled=.f.
>ENDIF
>
>can equally be expressed as
>
>this.enabled=(THISFORM.ADD_MODE OR THISFORM.EDIT_MODE)
>
>
>saves a little typing !
>
>Steve
>(a great beiever in one liners)
If it's not broken, fix it until it is.
My Blog