Re: a question in VB6
From: Joe \ (joe_at_bftsi0.UUCP)
Date: 04/12/04
- Previous message: Ronald Caudill: "Re: Cutting stock problem"
- In reply to: Basel Saba: "a question in VB6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 11 Apr 2004 18:04:21 -0700
"Basel Saba" <bg-saba@scs-net.org> wrote in message <news:c99d4f3e.0404111639.77b81764@posting.google.com>...
> Can I call a procedure in a form from a procedure in another form?
>
> I mean:
>
> If I have a sub such as: "Private Sub Command1_Click:" in Form1, and
> in this procedure I want to call another sub such as "Private Sub
> Command2_Click:" in form2.
>
> Can I do that?
Yes, if Command2_Click is Public instead of Private. However, this
probably isn't a good idea. Try separating the functionality out
into a Public Sub within a module and have both Command1_Click and
Command2_Click call the Public Sub within the module. Otherwise,
you might find yourself in the same messes that plagued many a VB1
project.
-- Joe Foster <mailto:jlfoster%40znet.com> Sacrament R2-45 <http://www.xenu.net/> WARNING: I cannot be held responsible for the above They're coming to because my cats have apparently learned to type. take me away, ha ha!
- Previous message: Ronald Caudill: "Re: Cutting stock problem"
- In reply to: Basel Saba: "a question in VB6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|