View Single Post

  #1 (permalink)  
Old 10-01-2007, 08:37 AM
anmol004@gmail. anmol004@gmail. is offline
Junior Member
 
Join Date: Apr 2007
Posts: 2
anmol004@gmail. is on a distinguished road
Problem in visual basic......????

I want to print the numbers 1 to 99.
i have written the following code:

private sub cmdCommand1_click()
dim i as integer
for i = 1 to 99
print i
next i
end sub

What's wrong with this coding? The output of above is all the numbers from 1 to 16?
Reply With Quote