strzzxx="1,2,2,2,"
Replace(strzzxx, str(1), "")>>>"1,2,2,2,"
Replace(strzzxx, str(2), "")>>>"1,,,,"为什么1不能替换,2能替换呢?
Replace(strzzxx, str(1), "")>>>"1,2,2,2,"
Replace(strzzxx, str(2), "")>>>"1,,,,"为什么1不能替换,2能替换呢?
Replace(strzzxx, "1", "")>>>",2,2,2,"为什么转换后不行呢?
因为STR()有空格.
我的测试结果是两个都不能替换的我测试了
asc(str(1))=32
32
asc(cstr(1))=49说明str出来的字符不一样然后我去搜索了下str和cstr的不同
http://topic.csdn.net/t/20031029/13/2406330.html应该能给你一些启发