PC Review


Reply
Thread Tools Rate Thread

can we call function whose name store in variable

 
 
Abdul Qadir Khan
Guest
Posts: n/a
 
      10th Jul 2003
Hi All,

Is it possible to call a function whose name is store in variable using
VB.Net. Assume this

dim a as string

a = "GetEmployee()"

Now I have function name in a variable, how can I call this function.

Thanks
AQ


 
Reply With Quote
 
 
 
 
Stephen Muecke
Guest
Posts: n/a
 
      10th Jul 2003
Abdul,

Use the CallByName function

Stephen

"Abdul Qadir Khan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> Is it possible to call a function whose name is store in variable using
> VB.Net. Assume this
>
> dim a as string
>
> a = "GetEmployee()"
>
> Now I have function name in a variable, how can I call this function.
>
> Thanks
> AQ
>
>



 
Reply With Quote
 
Abdul Qadir Khan
Guest
Posts: n/a
 
      10th Jul 2003
Thanks a lot. It really helps me.

Software Engineer
DataNet
Karachi, Pakistan

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
How to Call a Store Procedure!!! savvaschr@nodalsoft.com.cy Microsoft Excel Programming 1 24th Jan 2006 10:02 AM
How to call a function where function name is a variable =?Utf-8?B?TWF0dCBDbGVwcGVy?= Microsoft Dot NET 5 10th Nov 2005 07:53 PM
Dynamically call a function depending on the value of a variable =?Utf-8?B?U3VwYSBIb29wc2E=?= Microsoft Dot NET 3 22nd Mar 2005 02:17 PM
How can I call SQL store procedure with VBA ? Mac Microsoft Access VBA Modules 2 22nd Oct 2004 08:17 PM
can we call function whose name store in variable Abdul Qadir Khan Microsoft Dot NET Framework Forms 0 10th Jul 2003 07:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 PM.