Can you dynamically build a function call ?

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Is it possible in VB to dynamically build a function call?

eg Something like:
strParams = strParam(0) & ", " & strParam(1)
strFunc = "Logon"
if not( frmMain.objMxAPI.strFunc( strParams ))


Regards,
Simon.
 
Hi Simon,

You might also like to look up CallByName()

Regards,
Fergus
 
* "Simon said:
Is it possible in VB to dynamically build a function call?

eg Something like:
strParams = strParam(0) & ", " & strParam(1)
strFunc = "Logon"
if not( frmMain.objMxAPI.strFunc( strParams ))

Have a look at 'CallByName'.
 

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

Back
Top