Loading ...
Sorry, an error occurred while loading the content.

[Clip] Re: IsNumber

Expand Messages
  • melchior prisi
    Hello Larry and Jody Thanks for your comments. I think I did not make really clear what my problem is. In my clip I _do_ use it the way Larry mentioned: ^!If
    Message 1 of 2 , Jan 10, 2000
    • 0 Attachment
      Hello Larry and Jody

      Thanks for your comments.
      I think I did not make really clear what my problem is.
      In my clip I _do_ use it the way Larry mentioned:

      ^!If ^$IsNumber(^%Amount%)$=1 NEXT ELSE MSG

      but the problem ist the _length_ of the string
      (does not matter if it is in a variable or not):

      ;LONG LINE
      ^!info
      ^$IsNumber("1026103410441053105410571062106710681069107110721")$
      ;END OF LONG LINE

      returns 0

      ;LONG LINE
      ^!info ^$IsNumber("102610341044105310541057106210671068106910711072")$
      ;END OF LONG LINE

      returns 1

      Happens with NTP4.6a and beta#14...


      The workaround I found is:

      ^!set %test%=^$Calc(^%number%/9000000000000000000000000000000)$
      ^!if ^$IsNumber("^%test%")$ = 0 NO else YES

      Not elegant, but now it works.


      Thanks again!

      Melchior
    Your message has been successfully submitted and would be delivered to recipients shortly.