Finding a CR in a String
TurnipTruck
Posts: 1,485
Greetings,
I have a string in which I need to replace $0D with $0A.
I am trying to locate the $0D with:
All I get is a 0 for nWHERE.
Any better suggestions for finding and replacing the CR?
Thanks.
I have a string in which I need to replace $0D with $0A.
I am trying to locate the $0D with:
nWHERE=FIND_STRING(cVBL_TEXT_TO_SEND,$0D,3)
All I get is a 0 for nWHERE.
Any better suggestions for finding and replacing the CR?
Thanks.
0
Comments
Put quotes around any single character string to make it work properly:
nWHERE=FIND_STRING(cVBL_TEXT_TO_SEND,"$0D",3)
The function!
Line to invoke the function.
>>In case you don't have the function, this is one that Dave got from the functions.axi file that kickin about.<<
Sounds like that could be a very useful file to have. Where could I get it? Or could someone email that file to me? I NEVER like to re-invent wheels...
Thanks,
Bill Querry
bquerry@crescentdigital.com
Crescent Digital, LLC
Check out the following Tech Notes for some useful string functions:
TN659 - TRIM_STRING
TN660 - FIND_STRING_REV
TN661 - REPLACE_STRING
TN662 - SPLIT_STRING
This particular function is all Leon .