Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype() type works different for hyperlink?
Message
From
08/07/2003 12:16:36
 
 
To
07/07/2003 19:20:31
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807623
Message ID:
00808064
Views:
27
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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform