Click to See Complete Forum and Search --> : looping


kennyteohkenkuan
August 15th, 1999, 11:42 AM
i got a problem in looping. for example i hav enter a value in form1 and i need touse it in the form2 looping but it cannot take the value from the defined value in form1. i hav declare it in the sub main(). so what happen and way to solve it? i am still a beginner in VB programming. pls advise....

Hover Xiao Bo
August 15th, 1999, 09:46 PM
You should define I in the General section of the module in which the SubMain() residents like this:

public I as integer



Then you can use this variant to process the loop in another module.