Page 1 of 1

application.getMethodContent(globals.myMethod)

PostPosted: Mon May 14, 2007 1:44 pm
by Karel Broer
I like to be able to retrieve the content of a method. This would be perfect for using eval() in extended ways.
It's even possible then to dynamicly build methods from existing Servoy methods!
Something like:
Code: Select all
if(thisValue == thatValue) {
    var vMethod = application.getMethodContent(globals.myMethod)
    vMethod += '\n\n' + application.getMethodContent(globals.myOtherMethod)
    eval(vMethod)
}