c/al problem

iqbalmadiqbalmad Member Posts: 179
hi guys

suppose i have a text string - 1|B|P100* or P10**

how do i replace the '*' with '..~'

i can't use the CONVERSTR function this function replaces 1 character with 1 another character.

thankx

Comments

  • teckpohteckpoh Member Posts: 271
    Use the built in function below:
    STRSUBSTNO (String)
    Use this function to replace %1, %2, %3... and #1, #2, #3... fields in a string with the values you provide as optional parameters.

    Eg: 1|B|P100* or P10**

    THEN

    convertedText := STRSUBSTNO(1|B|P100%1,..~);
Sign In or Register to comment.