Are you just trying to eliminate the non-numeric portion of the string?
I think that you'll receive the best advice by posting sample data and desired output.
Some thoughts:
If you need to strip multiple chars from a string:
//Loop through the string and save what you want
whileprintingrecords;
global stringvar ResultString:="";
numbervar x;
for x = 1 to length(trim({MyTable.MyField}))
do(
if not(mid(({MyTable.MyField}),x) in ["A","B","C","X","Z"]) then
ResultString := ResultString+not(mid(({MyTable.MyField}),x)
)
That should get you close, I can't test right now.
There's probably a UFL that addresses this, and perhaps a more efficient means within CR that I can't think of right now.
-k
kai@informeddatadecisions.com