For loop is ambiguous -
I am using Visual Basic 2008EE and I have a problem with this loop:
< Code> if x = CType ("new", primitive) then text window Write ("How many new users do you want to add?") K = TextWindow.ReadNumber () for MT = 1 Q NewUserEntry () Next
And I get this error:
"type 'MT' is controversial because the loop limit and phase segment do not change in the same type"
I appreciate any help.
) and the loop phase (absolute integer constant 1) has the
return type of readman
(or more accurately,k
type of variable) is probably not ainteger
. When the compiler wants to visualize the type ofmt
, it fails afterk
, which is specified in the loop bound (maybe < Code> doubleinteger
the compiler will not automatically accept the type ofmt
because the two matches Eat.as integer for MT = 1 of K NewUserEntry () Next
Comments
Post a Comment