Look into the CallFunctionByName (or CallMEthodByName, or CallByName -- something like that) statement, it should be of help.