Author Topic: Execute Method from String Name.  (Read 6489 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8783
  • AKA Daniel
Re: Execute Method from String Name.
« Reply #15 on: January 15, 2008, 11:17:32 PM »
Nice work Dave !!


MickD

  • King Gator
  • Posts: 3646
  • (x-in)->[process]->(y-out) ... simples!
Re: Execute Method from String Name.
« Reply #16 on: January 15, 2008, 11:20:13 PM »
Dictionary, map/hashtable,... whatever :D

Nice one Daniel.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Execute Method from String Name.
« Reply #17 on: January 16, 2008, 12:00:16 AM »
This situation comes into play with a menu,
In vba I had to make a sub for every menu item and when you are dealing with hardware there may be 80 subs that end up calling another function, however I could never figure out how to call a function passing it a string from a menu.
Perhaps the answers in this thread will work for this as well.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Execute Method from String Name.
« Reply #18 on: January 16, 2008, 05:16:14 AM »

Thanks fellas .. that's heaps for me to play with .. when I get some time to spare.

your blood is worth bottling !
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.