calling a method on a object that you know the string name for.

S

scotty

say you have an object, and you want to call a method, but that method
name is a string.

is there a way to execute this method?

obviously, you can't do

obj.methodname

need something like

Invoke(obj, "methodname")... to execute that method on the object.
 

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