New topic: Using Introspection to invoke a method
<http://forums.realsoftware.com/viewtopic.php?t=26177> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message tjones Post subject: Using Introspection to invoke a methodPosted: Fri Jan 23, 2009 9:43 pm Joined: Wed May 24, 2006 5:54 pm Posts: 184 Hello, I have found a few posts on introspection but I'm still missing something. I was wondering how I could use introspection on my class to invoke a method. Something like this ( I think ) Code: Dim myClassMethods() As Introspection.MethodInfo=Introspection.GetType(new MyNewClass).GetMethods For i as Integer =0 to Ubound(myClassMethods) if myClassMethods(i).Name = "testMethod" then myClassMethods(i).invoke // I know this does not work just an example end Next Thanks, tom Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
