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.

return type of readman (or more accurately, k type of variable) is probably not a integer . When the compiler wants to visualize the type of mt , it fails after k , which is specified in the loop bound (maybe < Code> double ) and the loop phase (absolute integer constant 1) has the integer the compiler will not automatically accept the type of mt because the two matches Eat.

  as integer for MT = 1 of K NewUserEntry () Next  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -