realbasic-nug
[Top] [All Lists]

Re: type-casting enumerations

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: type-casting enumerations
From: Mars Saxman <mars at realsoftware dot com>
Date: Sun, 28 May 2006 00:29:44 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060528070128 dot 4EC0212ABE1C at lists dot realsoftware dot com> <47F88713-1B81-474A-93A6-5DB493EA623F at midsouth dot rr dot com>

On May 28, 2006, at 12:21 AM, Dr. Scott Steinman wrote:

access = AccessType( Val( childNodeList.Item ( 0 ).FirstChild.Value ) )

Ah. The problem here is that Val returns a Double, which is a 64-bit float and not a 32-bit integer. You have to convert first, then cast.

Mars Saxman
REAL Software

_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>