Simple Array Question

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.
 
M

Miro

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top