On Aug 14, 2006, at 6:00 PM, Dennis Birch wrote:

The code is:

 dim n As Double

 n = kBetaTimeout

 MsgBox str(n)

I added the extra step of declaring the variable n as Double and
assigning it the constant's value as a test to make it sure it wasn't
an integer overflow issue. I was pretty sure the constant is declared
as a double (despite its "Number" naming), but since it wasn't working
correctly as simply "MsgBox str(kBetaTimeout)", I figured it was worth
a test. When I observe this in the debugger, n's value is also 0.

const kMyNum
declared as Number and = to .01

pushbutton1.action
msgBox str(kMyNum)

push the button and get    0.01

RB 2006r2
Mac 10.4.6


Roger M. Clary
Class One Software
http://www.classonesoftware.com
[EMAIL PROTECTED]

_______________________________________________
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