"As New" method - subroutine access

I have a program that I've created a template form and am dimensioning an array of these forms like so...

Dim X(200) as New fTemplateForm

so X(0) through x(200) are now all clones of this form. I would like to write some public subroutines in the template form that will be executable and accessable from outside the form object of each of these clones.

Comments

: I have a program that I've created a template form and am dimensioning an array of these forms like so...: : Dim X(200) as New fTemplateForm

Does this actually instantiate 200 form objects? I'm a bit surprised if so.

: so X(0) through x(200) are now all clones of this form. I would like to write some public subroutines in the template form that will be executable and accessable from outside the form object of each of these clones.: : So if that sentence was complicated - Here is what does not work:: : call X(1).MySubroutine(arg1, arg2): : I appreciate the help - thx

: : I have a program that I've created a template form and am dimensioning an array of these forms like so...: : : : Dim X(200) as New fTemplateForm: : Does this actually instantiate 200 form objects? I'm a bit surprised if so.: : : so X(0) through x(200) are now all clones of this form. I would like to write some public subroutines in the template form that will be executable and accessable from outside the form object of each of these clones.: : : : So if that sentence was complicated - Here is what does not work:: : : : call X(1).MySubroutine(arg1, arg2): : : : I appreciate the help - thx: : Is MySubroutines declared as Public?: : : [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]: : [code]: $ select * from users where clue > 0: no rows returned: [/code]: :

'If the user answers "Y" or "y" for yes then get their new details. If response.ToUpper = "Y" Then 'The 2 lines below (which aren't comments are really all one line of code) 'puts firstName into myDetails. 'The rest of the line is a prompt to the user.

'The part with the question mark "?" changes the BLUE TITLE area of the INPUT BOX.

'By putting "myDetails.first_Name" within the INPUTBOX it GETS the existing value 'to show the user what it is, setting the INPUTBOX screen position to '300 pixels across and 500 down from the top of the screen. myDetails.first_Name = InputBox("Click on OK or press ENTER to CONFIRM please.", _ "First name please?", myDetails.first_Name, 300, 500)

Get Return firstName End Get Set(ByVal Value As String) firstName = Value End Set End Property Property sur_Name() As String Get Return surName End Get Set(ByVal Value As String) surName = Value End Set End Property Property yourAddressLine1() As String Get Return address1 End Get Set(ByVal Value As String) address1 = Value End Set End Property Property yourAddressLine2() As String Get Return address2 End Get Set(ByVal Value As String) address2 = Value End Set End Property Property yourLocation() As String Get Return location End Get Set(ByVal Value As String) location = Value End Set End Property Property yourPostOrZipCode() As String Get Return postOrZipCode End Get Set(ByVal Value As String) postOrZipCode = Value End Set End Property Property yourCountry() As String Get Return country End Get Set(ByVal Value As String) country = Value End Set End Property Property yourTelNumber() As String Get Return telNo End Get Set(ByVal Value As String) telNo = Value End Set End PropertyEnd Class[/code]

My original need was to work with a subroutine that was local to a particular dimensioned form because I would be able to write generic code to work with the controls that are local to the form where the code is. Sorry for my lack of explanation - I guess I always just thought you guys were mind readers

Ya, I'm not looking to make a class reference or anything like that. And I am using a stripped version VB6 because I can compile it to run with out any additional installation (.net requires additional downloads and/or installs) - Which I could use C++ for, but this particular project will be MUCH quicker for me in VB. (Since the VBRUN.DLL is included with the base install of xp)

If there isn't a way to invoke a public subroutine from an "arrayed" template form I can write more intelligent code, but if anyone else knows a way to do this it would be very much appreciated.