Dynamic methods

Is it possible to enter the name of a method into a field and execute the method this field is containing from another method.
Something like:

var formname = "resoconti"
var methodname = nome_method + "()"
forms[nomeform].metodo;
//the last line should execute the method ;-)

Yes, with eval()

so in field, you have the value: forms.forms1.newRecord()

in another method you can do: eval(field)

HJK:
Yes, with eval()

so in field, you have the value: forms.forms1.newRecord()

in another method you can do: eval(field)

Ah, like FileMaker 7 :D

Great tip and great feature: thanks a lot :-)