On 8/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
On Aug 14, 2006, at 21:44 UTC, Dennis Birch wrote:
> I just created a simple project with a module that contains a number
constant.
>
> In the Open event of the project's App instance I have code that shows
> the constant's value in a MsgBox.
Shows it how? MsgBox takes a string, not a number. How are you
converting it?
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.
> When I move the mouse over the name of the constant in the code editor
> it shows its location in the module, and its value correctly in the
> feedback area at the bottom left of the code editing window.
And in the module, does the constant have a numeric icon, or something
else? When you select it, what is the type shown it the constant
editor area?
The icon is a little circle with ".01" inside. The Type popup reads "Number".
> Have I missed an important change in behavior from 5.5.5, or is this
a bug?
If it is, it's a new one to me -- and I use a lot of numeric constants.
I suspect something else is at play.
Can I send you my very simple test project offlist?
_______________________________________________
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>