VB6 在 TextBox 中格式化 Currency 时,代替 '$' 显示 '?'
VB6 while formatting Currency in the TextBox , in place of '$' , it is displaying '?'
我有一个文本框,我想在其中显示带有 $
符号的金额。我已经写了格式行。但它显示的不是 $
?
.txtField(priceAmt).Text = Format$(0, "currency")
如果我有金额 55.00
,它会显示为 ? 55.00
。我希望它显示为 .00
.
这只发生在我的机器上。当其他人使用相同的代码时,它给出了预期的结果。
两种解决方案:
1.As @Brian M Stafford 建议的评论,我将行更改为 Format$(0, "$0.00")。这对我有用。
2.In 控制面板设置,货币设置为卢比符号。我把它改成 $ 然后它对我有用。
我有一个文本框,我想在其中显示带有 $
符号的金额。我已经写了格式行。但它显示的不是 $
?
.txtField(priceAmt).Text = Format$(0, "currency")
如果我有金额 55.00
,它会显示为 ? 55.00
。我希望它显示为 .00
.
这只发生在我的机器上。当其他人使用相同的代码时,它给出了预期的结果。
两种解决方案: 1.As @Brian M Stafford 建议的评论,我将行更改为 Format$(0, "$0.00")。这对我有用。 2.In 控制面板设置,货币设置为卢比符号。我把它改成 $ 然后它对我有用。