IFERR? Interception of an input error
|
03-10-2017, 03:08 PM
Post: #6
|
|||
|
|||
RE: IFERR? Interception of an input error
(03-10-2017 02:01 PM)EdDereDdE Wrote: There is a bug in your code. Num would be non-zero as long as the last character is numeric. Your IF statement should be: IF (num == 0) THEN RETURN(0); END; There is no need for CONTINUE, since there is no code to skip after the IF statement. In fact, the current IF statement doesn't actually do anything when you trace the logic. Also, as an alternative to POS(), you could use: num:=(ASC(H(c)) > 46) AND (ASC(H(c)) < 58); (The latter suggestion is only pertinent for speed, and when testing for a larger range since POS() could in theory check all the way to the last item in the list.) Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
IFERR? Interception of an input error - Onieh - 03-10-2017, 08:25 AM
RE: IFERR? Interception of an input error - EdDereDdE - 03-10-2017, 12:47 PM
RE: IFERR? Interception of an input error - Onieh - 03-10-2017, 01:01 PM
RE: IFERR? Interception of an input error - EdDereDdE - 03-10-2017, 02:01 PM
RE: IFERR? Interception of an input error - Onieh - 03-10-2017, 02:25 PM
RE: IFERR? Interception of an input error - Han - 03-10-2017 03:08 PM
RE: IFERR? Interception of an input error - EdDereDdE - 03-10-2017, 07:51 PM
RE: IFERR? Interception of an input error - Didier Lachieze - 03-10-2017, 04:39 PM
RE: IFERR? Interception of an input error - Onieh - 03-10-2017, 05:06 PM
|
User(s) browsing this thread: 2 Guest(s)