s = "张三\\\\\\\\李四\\\\\王五\\\李六"
?"方法一"
DO WHILE (AT("\\", s) > 0) s = STRTRAN(s, "\\", "\")
ENDDO
?s
?"方法二"
ss = ""
FOR i=1 TO ALINES(a, s, "\") IF !EMPTY(a[i]) ss = ss + a[i]+"\" ENDIF
ENDFOR
ss = RTRIM(ss, "\")
?ss
s = "张三\\\\\\\\李四\\\\\王五\\\李六"
?"方法一"
DO WHILE (AT("\\", s) > 0) s = STRTRAN(s, "\\", "\")
ENDDO
?s
?"方法二"
ss = ""
FOR i=1 TO ALINES(a, s, "\") IF !EMPTY(a) ss = ss + a+"\" ENDIF
ENDFOR
ss = RTRIM(ss, "\")
?ss