|
Mark, That's a great answer to the question which we'll use. Turns out we're not concerned with negatives. Thanks, Paul -- Paul Morgan Senior Programmer Analyst - Retail J. Jill Group 100 Birch Pond Drive, PO Box 2009 Tilton, NH 03276-2009 Phone: (603) 266-2117 Fax: (603) 266-2333 Mark wrote > Paul, > > Assuming that you really want to know if all of the characters in your > string are numeric and not the RPG definition of TESTN (see manual for > details), > > IF %Check( '0123456789': StringToCheck ) = 0 ; > // All numeric - do stuff > ELSE ; > // Run error routine > ENDIF ; > > Of course the digits string can be defined as a constant in the D specs, > etc. > > -mark
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.