PC Review


Reply
Thread Tools Rate Thread

Call a procedure whose name is stored in a variable

 
 
Andrew
Guest
Posts: n/a
 
      4th Oct 2007
Hi all

Is there a way of calling a procedure, the name of which is stored in
a variable?

I am trying to create a class object to encapsulate a timer function.
The idea is that you would instantiate the object and set a property
which determines which procedure to call. Evidently, this property let
procedure will use a private string variable to store the information,
and so at some point I'll need to have code along the lines of

Call [strProcedureName]

However, I can't get this to work.... any ideas?

Thanks a lot

Andrew

 
Reply With Quote
 
 
 
 
papou
Guest
Posts: n/a
 
      4th Oct 2007
Hello Andrew
How about:
Application.Run strProcedureName

HTH
Cordially
Pascal

"Andrew" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
> Hi all
>
> Is there a way of calling a procedure, the name of which is stored in
> a variable?
>
> I am trying to create a class object to encapsulate a timer function.
> The idea is that you would instantiate the object and set a property
> which determines which procedure to call. Evidently, this property let
> procedure will use a private string variable to store the information,
> and so at some point I'll need to have code along the lines of
>
> Call [strProcedureName]
>
> However, I can't get this to work.... any ideas?
>
> Thanks a lot
>
> Andrew
>



 
Reply With Quote
 
Andrew
Guest
Posts: n/a
 
      4th Oct 2007
On 4 Oct, 13:03, "papou" <cpapoupasbon@çanonpluslaposte.net> wrote:
> Hello Andrew
> How about:
> Application.Run strProcedureName
>
> HTH
> Cordially
> Pascal
>
> "Andrew" <andrewmricha...@yahoo.co.uk> a écrit dans le message de news:
> 1191498994.693645.288...@g4g2000hsf.googlegroups.com...
>
>
>
> > Hi all

>
> > Is there a way of calling a procedure, the name of which is stored in
> > a variable?

>
> > I am trying to create a class object to encapsulate a timer function.
> > The idea is that you would instantiate the object and set a property
> > which determines which procedure to call. Evidently, this property let
> > procedure will use a private string variable to store the information,
> > and so at some point I'll need to have code along the lines of

>
> > Call [strProcedureName]

>
> > However, I can't get this to work.... any ideas?

>
> > Thanks a lot

>
> > Andrew- Hide quoted text -

>
> - Show quoted text -


Hi

Thanks for that. This certainly works so thanks for that. I've another
question, regarding calling a proc from Application.OnTime, but it's
not really related so I'll do a separate post.

Thanks again

Andrew

 
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
Call SQL stored procedure =?Utf-8?B?VG9ueQ==?= Microsoft Access Form Coding 3 12th Sep 2005 10:30 PM
Call Stored Procedure via ASP.Net (VB) Sam Microsoft ASP .NET 6 11th May 2005 05:06 PM
Best way to call a stored procedure mike Microsoft C# .NET 2 22nd Jun 2004 03:56 PM
Best way to call a stored procedure mike Microsoft C# .NET 1 16th Jun 2004 06:10 PM
Stored Procedure call Steven K Microsoft ASP .NET 2 3rd Mar 2004 07:26 PM


Features
 

Advertising
 

Newsgroups
 


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