Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Immediate Window Oddity 1

Status
Not open for further replies.

Golom

Programmer
Sep 1, 2003
5,595
CA
I just did this
Code:
x=cdate("04/22/2002")
? vartype(x)
 7 
? typename(7)
Integer
? typename(vartype(x))
Long
Why is the TypeName(7) returning "Integer" but TypeName(VarType(x)) (which should resolve to the same thing) is returning "Long"?
 
Bacuase the documentation for VarType appears to be wrong, it returns a Long rather than an Integer. In other words, using type declaration characters for some clarity,VarType(x) actually returns 7& rather than 7%

So you are actually looking at the difference between

TypeName(7%)

and

TypeName(7&)
 
Seems to me the old WinHelp let you make annotations and store them. Sadly with the CHM format used by MSDN Library of the vintage supporting VB6 properly you can't do this.

I suppose I ought to look at the newer format MS Help 2.x to see what it offers.

But being able to make notes against errors found in CHM Help files would be a great thing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top