|
查看: 994|回复: 2
|
[求助]在VB里,怎样确定variable是integer还是string?
[复制链接]
|
|
|
例子:textBox1.text="abc"
要用什么keyword detect textBox1.text是integer还是string? |
|
|
|
|
|
|
|
|
|
|
发表于 8-7-2008 06:35 PM
|
显示全部楼层
|
isNumeric(textbox1.text), true = numeric type, false = non numeric type |
|
|
|
|
|
|
|
|
|
|
发表于 10-7-2008 03:57 PM
|
显示全部楼层
|
注意的是,如果用 isnumeric,+, - , . 也会当成 numeric 来看待。 |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|