Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在修改 vb 6 中的旧应用程序(对于我的工作),它将数据读入数据库,然后将这些数据写入 csv 文件。
我读取数据没有问题,但是当我将它们写入csv文件时,整个部分和小数部分用“。”分隔。但我需要用“,”分隔这些
你能帮我建立一个小功能吗?
您可以使用内置函数Replace来执行此操作:
Replace
new_string = replace(old_string, ".", ",")
mystring = Replace(sourceString, ".", ",")
有关更多信息,请参见此处和此处。