473,379 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Reflection and parameters

I need to call different functions on classes eg
MyFunction(param1 as boolean, param2 as string) as datatable
MyFunction2(param1 as date, param2 as int64) as datatable

using reflection, I can load the object by name but dont know how to call the function using the parameters.

Can anyone help me with this
TIA

Nov 19 '05 #1
1 1161
Rob

Look at the CallByName function

Stephen

"rob thomson" <ro*********@virginmusic.com> wrote in message
news:OJ**************@TK2MSFTNGP10.phx.gbl...
I need to call different functions on classes eg
MyFunction(param1 as boolean, param2 as string) as datatable
MyFunction2(param1 as date, param2 as int64) as datatable

using reflection, I can load the object by name but dont know how to call
the function using the parameters.

Can anyone help me with this
TIA
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Derek Hart | last post by:
I wish to execute code from a string. The string will have a function name, which will return a string: Dim a as string a = "MyFunctionName(param1, param2)" I have seen a ton of people...
2
by: Aragorn | last post by:
I want to load into a SqlCommand objet an existing stored procedure. I know that by using the Parameters collection I can add parameters, but how can I retrieve the parameters already defined from...
2
by: V. Jenks | last post by:
I am using reflection to load classes and I can't find any examples on how to pass values to constructor parameters using reflection, how is this done? Here's an example of one of my methods, as...
12
by: Gus | last post by:
Hi, I´m triying to invoke a member using reflection, but this member requiere two parameters, the first patrameter is a string and the second is a reference to a dataset (output parameter). The...
5
by: jerry051 | last post by:
I invoke a method by reflection, when this method's parameters is simple type like int or string,the invoking is correct and secceed. But when the parameters is ArrayList type, debuger tips me that...
2
by: Wiktor Zychla [C# MVP] | last post by:
Could anyone confirm/deny that following is a bug (or at least an "unexpected behaviour")? If this is not a bug, I would be glad for a short explanation or a workaround. Issue: A generic...
1
by: nilesh.chitale | last post by:
Hi All, I am facing a problem while using Reflection. I had written a simple class containing simple method taking two parameters 1. Int Arrary 2. bool This can be achieved by following...
7
by: BK | last post by:
I've used reflection quite a bit to launch forms, it works great, requires little coding, and allows me to launch forms from a dynamic menu. Now I have a need to instantiate any one of several...
1
by: Harish Krishnan | last post by:
..NET Assembly CustomerInfo.dll has a class by name CustomerInfo which inturn has two methods GetCustomer() and GetCustomerDetails() and GetCustomer() calls GetCustomerDetails()....
5
by: Klaudiusz Bryja | last post by:
Hi, This is for NetCF 2.0. I need to create event handling code which using reflection. I have some parameters in XML which describe how event should be handled. I have code to create...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.