Hi Naomi,
now I figured out why I use the complex TYPE / ISNULL form.
VARTYPE(_screen.ACTIVEFORM) wiil fail if there is no active form. (Just try on command window)
Try VARTYPE(_screen.ACTIVEFORMx) too
Agnes
>I think vartype came in VFP6, so it this code has a long history, it explains it.
>
>>Could it be that in the days of yore VARTYPE does not work with unkown names? VFP 5.0 or so? I feel puzzled.
>>
>>>Yes :) much less typing :)
>>>
>>>>You mean instead of
>>>>
If !TYPE("loWord") = 'O' or ISNULL(loWord)) THEN
>>>>?
>>>>
>>>>(+.+)(-.-)(_ _)
>>>>
>>>>Agnes
>>>>
>>>>>Just use vartype() :)
>>>>>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]