Reflection and parameters

R

rob thomson

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
 
S

Stephen Muecke

Rob

Look at the CallByName function

Stephen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top