On May 8, 2006, at 4:22 PM, Terry Ford wrote:

For example, " 34 Items" works but " ", " &h, etc all evaluate to a non numeric character and result in a zero result.

I should also add that there can be no spaces between &h, &c or &b; eg Integer = Val("& hFFF") will evaluate to 0.

Even weirder things can happen.

Integer = Val("&hFF"), Integer = Val("&h FF") and Integer = Val(" 255 Cat") will all evaluate to 255.

BUT;

Val("&h FF Cat") or Val("&hFFCat") will evaluate to 1047741 and Val ("&h FF Dog") or Val("&hFFDog") will evaluate to 1048208.

Now try to figure that one out. ;-)

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to