创建一个具有金钱或比索价值的文本框 [英] creating a textbox with a money or peso value

查看:42
本文介绍了创建一个具有金钱或比索价值的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在用户表单中有一个texbbox,但是我的问题是如何在texbox中输入货币值????

i have a texbbox in a user form, but my problem is how can i input a money value in my texbox????

推荐答案

尝试输入,然后输入金额.如果您尝试以编程方式在文本框中放入内容,请使用:

If you are trying to type into it, then just type the amount. If you are trying to programmatically put something in the textbox, then use:

Textbox1.text = ""



Textbox1是文本框的名称.将要显示的内容放在"
内的文本框中
希望这可以帮助. :)



Textbox1 being the name of the textbox. put what you want to appear in the textbox inside the ""

Hope this helps. :)


我不确定您要问的是什么,但听起来好像您只是在索要有关如何将数字格式化为字符串的信息.如果是这样,以下两个链接可能会为您提供帮助:

标准数字格式字符串 [自定义数字格式字符串 [
I''m not sure exactly what you are asking, but it sounds like perhaps you are simply asking for information on how to format a number into a string. If so, here are two links that may help you:

Standard Numeric Format Strings[^]

Custom Numeric Format Strings[^]

If you scroll down on each of them, you''ll see some sample code for how each are used. I''ve never had to format for pesos, but these links do discuss how changing the culture will change the way the number is formatted. So hopefully that will help.


这篇关于创建一个具有金钱或比索价值的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆