[thelist] What should Cint(True) return?

Ken Schaefer ken at adOpenStatic.com
Tue Nov 11 18:57:46 CST 2003


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Peter Wakeford" <peterwakeford at intekom.co.za>
Subject: [thelist] What should Cint(True) return?


: Can anyone experts out there tell me why Cint(TRUE)
: returns -1 instead of 1?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'm not sure why you expect it to be otherwise. Direct from the VBScript
documentation:

<quote>
The True keyword has a value equal to -1.

See Also
False
</quote>

http://www.microsoft.com/downloads/details.aspx?FamilyId=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en

Cheers
Ken

Microsoft MVP - Windows Server (IIS)



More information about the thelist mailing list