On Wed, Oct 14, 2009 at 3:40 AM, Allen <[email protected]> wrote:
> I was not so much reporting a bug as a warning for others changing code to
> vartype. I can live with it as long as I know. But I do wonder why vartype
> was even invented when type worked as expected. Though thinking about it as
> you mentioned it is looking at variables not objects. It does seem to fail
> on type "U" returns.
> Al

Did you ask the Intertubes? MSDN does point out the behavior you mentioned:

http://msdn.microsoft.com/en-us/library/tt9t2x67%28VS.80%29.aspx

Calvin blogged about the difference between the two functions, and his
post points out some of the internal behaviors:

http://blogs.msdn.com/calvin_hsia/archive/2006/01/03/508832.aspx

The FoxPro wiki pretty much reports the same thing:

http://fox.wikis.com/wc.dll?Wiki~VarType~VFP

I wonder what the Hacker's Guide says. I'll bet it's insightful.

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to