【发布时间】:2010-01-25 19:49:07
【问题描述】:
我使用的是 Visual Basic 2008EE,但这个循环有问题:
If x = CType("new", Primitive) Then
TextWindow.Write("How many new users would you like to add? ")
k = TextWindow.ReadNumber()
For mt = 1 To k
NewUserEntry()
Next
我得到这个错误:
"type of 'mt' is ambigious because the loop bounds and the step clause do not convert to the same type"
感谢您的帮助。
【问题讨论】:
-
你确定这是 VB 而不是 SmallBasic?