David,

ObjectToNumber applies Rexx language rules to the conversion process,
which means the string value must be between 999999999 to -999999999
(i.e., a valid whole number under the default digits setting).  Is
there any chance this applies to your situation?  A valid outside that
range will result in a false return value indicating it couldn't be
converted.  There are other conversions that might be more
appropriate.  I do see a hole in the interface, as I was going to
suggest using ObjectToIntptr() as a substitute....but I only
implemented the unsigned version.  I'll see about adding that.

Rick

On Wed, Aug 20, 2008 at 6:08 PM, David Ashley <[EMAIL PROTECTED]> wrote:
> Rick -
>
> Let me preface this by saying I am not up to the current trunk level for my
> copy of ooRexx. Mine was compiled on July 31. So this may be fixed already.
> And there is no real hurry on this, I know you are on vacation.
>
> I am having a problem with the ObjectToNumber method. It does not seem to
> convert negative numbers in a Rexx object correctly. When I look at the
> string value of the object it is correct, but when I use the method to
> convert the object to a wholenumber_t it delivers some random value,
> sometimes the converted number is not even a negative number.
>
> Pleas let me know what you discover.
>
> Thanks,
> W. David Ashley
> IBM Systems and Technology Group Lab Services
> Open Object Rexx Team
> Mobile Phone: 512-289-7506
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to