查看: 1563|回复: 2
|
[求助] V.Foxpro:怎样把textbox的char type转成numeric
[复制链接]
|
|
想请教各位,
怎样把textbox的char type转成numeric
谢谢 |
|
|
|
|
|
|
|
发表于 19-11-2007 01:20 PM
|
显示全部楼层
如果你要TextBox是Numeric type
textbox1.value = 100
如果你要TextBox是Character type,可以用Val()function
textbox1.value = "100"
nNumber = val(textbox1.value) |
|
|
|
|
|
|
|
发表于 21-11-2007 10:45 PM
|
显示全部楼层
建议先把 textbox.value = 0
如果有限制字数,用 format 以及 maxlength
那么 user 就只能输入数字了。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|