gettingstarted
[Top] [All Lists]

Method Name in a Variable

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Method Name in a Variable
From: Chuck Pelto <cbpelto at pcisys dot net>
Date: Sat, 26 Feb 2005 09:33:11 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
Greetings,

Is possible to have a method name stored in a variable and then call that variable and have the method executed?

Example....

dim methodName as string

methodName = MyMethod

App.methodName(param1, param2,...paramN)

Would that work?

I'm contemplating an error handling system, wherein if an error is detected, there is a method in the App source code that will take params, identify the error via a database and a field in the database record for the error directs the App to perform an applicable method for handling the error.

Regards,

Chuck

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>