local i for i = 1 to ... ... nextIf you need a "variable" in several methods, use a form property. In the following example, the form receives some parameter in the Init() method, and uses it somewhere else.
* Form.Init() * Receive parameter lparameters tcSomeValue * Create form property and store value ThisForm.AddProperty("cSomeValue", m.tcSomeValue) * Using the property in some other method * Form.MyMethod() MessageBox("The parameter passed was: " + ThisForm.cSomeValue)