[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Extract only numbers of a string

  • Thread starter Thread starter 2087
  • Start date Start date
Status
Not open for further replies.
2

2087

Guest
If you just want all the digits - even if spread through the string in can be done even more simply by a single loop from 1 to LENGTH of string. Use SUBSTRING to get a single character . Check if it is a digit by checking >="0" and <= "9" - if it is add to second string. After loop vNumber = INTEGER(vString2).

Continue reading...
 
Status
Not open for further replies.
Back
Top