Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: David H. on February 10, 2011, 05:05:07 pm



Title: Feature request, check a function exists at runtime.
Post by: David H. on February 10, 2011, 05:05:07 pm
Using fgl_call() it is possible to call a function which does not exist causing a runtime error. I'd like to be able to write something like:-

Code
  1. if fgl_function_exists("funcname")  fgl_call(funcname)

It would also be nice if a documented function could be made available to call a function passing the function name as a string which can then vary at runtime, i.e:-

fgl_calls("myfunc")

I can do this currently but only by using an undocumented function...