回复 9楼 吹水佬
辛苦了,也可解决一些问题!谢谢!!!
看不懂,慢慢学!
[此贴子已经被作者于2020-6-22 21:58编辑过]
SELECT M,重复字符,CAST(0 AS i) 重复数 FROM cf INTO table temp SCAN cstr=M ccf='' DO WHILE !EMPTY(cstr) nlen=LENC(cstr) cchr=LEFTc(cstr,1) cstr=STRTRAN(cstr,cchr,'') nlen=nlen-LENC(cstr) IF nlen>1 AND !EMPTY(cchr) ccf=ccf+cchr &&列出重复字符 ENDIF ENDDO replace 重复字符 WITH ccf, 重复数 WITH LENC(ccf) ENDscan BROWSE
[此贴子已经被作者于2020-6-23 00:32编辑过]