Calling a method from its stored name

I’ve created a table with a limited number of rows, used for a navigation/controller form.

Some rows have a field that contains a method name (null for the others).

Is there a way to directly call the corresponding method ? (make the value in the field recognized as a method name) :

if (field != null)
{
        field()    %) 
}

Iwish I could avoid doing something like this :

if (field == 'method1()')
{
        method1()
}

if (field == 'method2()')
{
        method2()
}

if etc..

(In fact if I can’t use directly the stored name the whole column is useless)

try using eval something like:

eval(field+“()”);

It works just fine, and it’s as…clean as I hoped.
(nb : my values already contained the ()s so I only tried eval(field))

Thank you very much.