强制程序以特定区域模式运行(关于国际数字格式;即逗号和小数位)

发布于 2024-12-23 09:38:52 字数 277 浏览 4 评论 0原文

我充其量只是一个新手,所以如果这是微不足道的,请原谅我。我为我们的美国公司编写了一款软件,现在将在国际上使用。它是一种研究工具,很大程度上依赖于数学公式。我们没有考虑到许多欧洲国家使用小数点代替逗号以及逗号代替小数点的事实。这会导致程序在许多不同的地方崩溃。

我尝试切换到更适合区域的命令(例如 CStr 而不是 Str),但这会导致其他问题,并成为猫捉老鼠的游戏。

是否有一些简单的解决方法可以强制该程序在美国区域设置下运行?这似乎是计算机本身的一个简单选项,无需重新启动即可切换。

谢谢!

I'm a novice at best, so forgive me if this is trivial. I wrote a piece of software for our American company that is now going to be used internationally. It's a research tool and relies heavily on mathematical formulas. We did not take into account the fact that many European countries use decimal points in place of commas and commas in place of decimal points. This causes the program to crash in many different places.

I've tried switching to the more regional-friendly commands (e.g. CStr instead of Str), but that causes other problems, and becomes a cat-and-mouse game.

Is there some simple work-around where I can force this program to run with the American regional setting? It seems to be a simple option on the computer itself that can be switched around without rebooting.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文