>>I need to remove trailing chr(0)'s from a null terminated string. I gathered from VFP help that I should be able to do this by...
>>
>>SET LIBRARY TO STRLEN
>>cTest = "Hello"+repl(chr(0),10)
>>nLen = STRLEN(cTest) && should return 5
>>cString = LEFT(cTest, nLen)
>>
>>but no such library exists as far as I can tell.
>>Can anyone shed any light on this for me?
>
cTest = "Hello" + REPLICATE(CHR(0), 10)
>cString = CHRTRAN(cTest, CHR(0), "")
Al,
I know about the CHRTRAN. I was wondering why the help refers to non-existent libraries.
Thanks,
Larry