#77 Invalid data conversions in DHTML

v3.0
closed
None
5
2012-08-14
2005-05-19
Tyito
No

Two problems

1.Numbers around 4000000000 are converted to
negative ones.

For example,
alert('4000000000')
results in -294967296.

2.Leading zeroes are suppressed.

For example,
alert('00099')
results in 99.

Both occurs on either ooRexx 3.01 or Object Rexx 2.1.3
under W2K Pro SP4.

Discussion

  • Tyito

    Tyito - 2005-05-19

    HTA to compare ooRexx result with JScript

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-04-29

    Example code for using OLEVariant

     
  • Mark Miesfeld

    Mark Miesfeld - 2007-04-29

    Logged In: YES
    user_id=191588
    Originator: NO

    This is fixed by the inclusion of the OLEVariant class in ooRexx's OLE Automation implementation. OLEVariant is include in ooRexx 3.1.2 which is now available.

    I am attaching the file: NumberNonProblem.hta which demonstrates how to code ooRexx to produce the same results as JScript and contains some extra explanatory text.
    File Added: NumberNonProblem.hta

     


Anonymous

Cancel  Add attachments