[VBS ] 新手問題 Isnumeric
看板Visual_Basic作者geniuswen (firejimtracy.com)時間15年前 (2010/06/01 08:07)推噓1(1推 0噓 0→)留言1則, 1人參與討論串1/2 (看更多)
請問一下有關 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
推
06/02 00:49, , 1F
06/02 00:49, 1F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):