>>
lcString="ABC,DEF,GHI,JKL"
>>lcString2=""
>>x=0
>>do while x<len(m.lcString)
>> x=m.x+1
>> IF SUBSTR(m.lcString,m.x,1)<>","
>> lcString2=m.lcString2+substr(m.lcString,m.x,1)
>> ENDIF
>>enddo X
>>?m.lcString2
>
>I get ABCDEFGHIJKL, is that a surprise? Apart from showing that Substr() accepts 0 for the start position, I mean?
My code does not show that substr accepts 0 for the start position.
>
>It actually also accepts negative numbers. But with zero or negative values, the output is an empty string.