Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
"As New" method - subroutine access Posted by Psightoplazm on 7 Jun 2006 at 9:29 AM
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.

So if that sentence was complicated - Here is what does not work:

call X(1).MySubroutine(arg1, arg2)

I appreciate the help - thx



></\/~Psightoplasm`~
Thread Tree
Psightoplazm "As New" method - subroutine access on 7 Jun 2006 at 9:29 AM
infidel Re: "As New" method - subroutine access on 8 Jun 2006 at 8:48 AM
Psightoplazm Re: "As New" method - subroutine access on 8 Jun 2006 at 9:51 AM
DrMarten Try a CLASS definition. on 8 Jun 2006 at 12:25 PM
Psightoplazm Re: "As New" method - subroutine access on 9 Jun 2006 at 10:37 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.