>Can I find out whether the variable is already exist or not?
>
>TIA.
As Gavin said, TYPE([testvar]) = [U] is Undefined variable.
For Object properties or method:
IF PEMSTATUS(ThisForm, [myKiss], 5) = .T.
ELSE
ENDIF
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.