I had to giggle here Steve. I had vartype all over an app too because I KNEW where the vars existed and where they didn't. That is, until new programmers brought onboard started releasing my variables where they shouldn't be and WHAM! no variable existed anylonger where it should have. Just to be safe, I switched them all to TYPE()instead. Crazy, but hey, I won't get that error anymore! :o)
>Sergey,
>
>Okay, thanks...I've got vartype() all over the place for that kind of test...
>
>>>
>>As I sad I never use vartype for variables/properties if I'm not sure if they exist. I would use
if type("oApp")<> "O"
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"