Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Substring the numbers before the string 1

Status
Not open for further replies.

saran26

Programmer
May 20, 2008
173
US
Hi All,

In my table , the values are stored as numbers followed by a text. Is it possible to display only the text after stripping the numbers before that text.

Example

From
6005466 - 5.1.1 Resting Order is outside Daily Limits

To
Resting Order is outside Daily Limits

Thanks
Saran

 
stringvar x := {table.field};
stringvar z := "";
numbervar i;
numbervar j := len(x);

for i := 1 to j do(
if x = ' ' or
ucase(x) in chr(65) to chr(90) then
z := z + x
);
trim(z)

This would return the text in your example, but if there could be numbers in the text portion of the field, it wouldn't return those.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top