PC Review


Reply
Thread Tools Rate Thread

call sub inside other sub

 
 
bbussoloti
Guest
Posts: n/a
 
      29th Nov 2007
Hi
i´d like to know how to call a sub inside other sub.
If i have a sub that a user can trigger by clicking a button, i´d like to
call another sub in the middle of the code. In a pseudo-code example that
should look like:

sub Proc1()
'do something
call Proc2
'do something else
end sub
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      29th Nov 2007
Try your pseudo code. I bet it'll work.



bbussoloti wrote:
>
> Hi
> i´d like to know how to call a sub inside other sub.
> If i have a sub that a user can trigger by clicking a button, i´d like to
> call another sub in the middle of the code. In a pseudo-code example that
> should look like:
>
> sub Proc1()
> 'do something
> call Proc2
> 'do something else
> end sub


--

Dave Peterson
 
Reply With Quote
 
Dale Fye
Guest
Posts: n/a
 
      29th Nov 2007
That should work just fine.

Dale
--
Don''t forget to rate the post if it was helpful!

Email address is not valid.
Please reply to newsgroup only.


"bbussoloti" wrote:

> Hi
> i´d like to know how to call a sub inside other sub.
> If i have a sub that a user can trigger by clicking a button, i´d like to
> call another sub in the middle of the code. In a pseudo-code example that
> should look like:
>
> sub Proc1()
> 'do something
> call Proc2
> 'do something else
> end sub

 
Reply With Quote
 
sebastienm
Guest
Posts: n/a
 
      29th Nov 2007
Hi,

sub Proc1()
'do something
Proc2 argument1, argument2, ...
'or use the Call keyword
Call Proc2(argument1, argument2, ...)
end sub
--
Regards,
Sébastien
<http://www.ondemandanalysis.com>


"bbussoloti" wrote:

> Hi
> i´d like to know how to call a sub inside other sub.
> If i have a sub that a user can trigger by clicking a button, i´d like to
> call another sub in the middle of the code. In a pseudo-code example that
> should look like:
>
> sub Proc1()
> 'do something
> call Proc2
> 'do something else
> end sub

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm not sure what to call it (details inside) Moe- Microsoft Word Document Management 1 28th Sep 2008 05:29 PM
How do I call a function inside an <asp:QueryStringParameter>? ~john Microsoft ASP .NET 0 18th Oct 2006 02:41 PM
Re: COM Call inside thread Ollie Riches Microsoft C# .NET 3 5th Sep 2005 05:04 PM
Call a proc inside itself (HELP) David Microsoft Excel Programming 2 4th Feb 2004 08:28 PM
Hot to call C# function inside XSLT ? Maxim Kazitov Microsoft C# .NET 2 29th Jan 2004 08:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:09 PM.