Simple Array Question

  • Thread starter Thread starter HardySpicer
  • Start date Start date
H

HardySpicer

I have an array of strings ARRAY in a class - say class2 on a separate
form which reads in an array of values of text into ARRAY. I need to
pass this back to the main Form1.vb class.

What is the best way to do this?

so I have

class Form1

need to read the ARRAY vallues here - passed from class2

end class Form1


class class2
Public ARRAY() as string
read values into ARRAY from file

end class class2


Thanks

H.
 
Create a property on form one.
You should be able to write it to the form 1's property from form2.

Form 1 can then access that property whenever it needs to.

Miro
 
Back
Top