New topic: 

String value as Method name

<http://forums.realsoftware.com/viewtopic.php?t=41306>

  Page 1 of 1
 [ 2 posts ]  Previous topic | Next topic AuthorMessagejeex Post subject: 
String value as Method namePosted: Fri Nov 04, 2011 7:19 am 
Joined: Mon Jul 18, 2011 3:45 am
Posts: 9 New here, so maybe a stupid question:

I have a number of methods, for example ZetSlaan(arg), ZetRoteren(arg) etc.

After some communication the server gives back the name of the method I want to 
activate:

Dim name As String = "ZetSlaan" // or ZetRoteren" etc.

How can I activate the method corresponding with the name of the method, other 
than with Select Case?
Top   Jason_Adams Post subject: Re: String value as Method namePosted: Fri Nov 
04, 2011 7:33 am 
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1013
Location: Michigan, USA You'll want to check out Introspection for this 
philosophy of programming.

Hope this helps. 
_________________
Windows 7 Ultimate x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2011r3

"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton
Top   Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 
months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1
 [ 2 posts ] 
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to