Hi there guys, I like to ask, does have some function in C/AL to cut char from string, for example
string NumToWord
NumToWord getting value one thousand and fifty two hundred and dollars
so, here I want to inspect, does before dollars I have 'and', if there is 'and' to be deleted from the string. The problem here is when I use DELCHR function, all and are getting deleted.
Thanks to all
Best regards
0
Comments
to convert in
:-k
the calling syntax is:
NewString := DELSTR(String, Position[, Length])
That's "cut <length> chars from <position> on aut of <string>". So, the way to go would be to identify the position and length of the substring you want to cut.
with best regards
Jens