作者geniuswen (firejimtracy.com)
看板Visual_Basic
标题[VBS ] 新手问题 Isnumeric
时间Tue Jun 1 08:07:45 2010
请问一下有关 Isnumeric 问题
Dim counter as Integer
Do
Console.WriteLine("Please input how many employees to process.
The number must > 0.")
counter = Console.ReadLine()
Loop Until (IsNumeric(counter) = True)
为什麽我dim counter as integer 的时候程式没办法跑
但是dim counter as object的时候就可以?
还有 我在loop until後面的条件我想加上 and counter > 0的话程式也不能跑
这跟isnumeric这个涵事有关系吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 65.211.149.2
1F:推 Cypresslin:用VS2008测试可以跑捏,不能跑是怎麽个不能跑法? 06/02 00:49