作者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