<div>
                    <div>Lua 5.1.4 &nbsp;Copyright (C) 1994-2008 Lua.org, PUC-Rio</div><div>&gt; function foo() print "hello" end</div><div>&gt; bar = foo</div><div>&gt; bar()</div><div>hello</div><div>&gt;&nbsp;</div><div><br></div><div>or, if you really want to have the function name as a string, there are some suggestions here:</div><div><br></div><div>http://stackoverflow.com/questions/1791234/lua-call-function-from-a-string-with-function-name</div><div><br></div><div>hunmonk</div>
                </div>
                <div></div>
                 
                <p style="color: #A0A0A8;">On Sunday, December 16, 2012 at 11:34 AM, Lloyd Aloysius wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><font face="verdana,sans-serif">Hello&nbsp;</font><div><font face="verdana,sans-serif"><br></font></div><div><font face="verdana, sans-serif">Does lua support ,&nbsp;Call a Function through a variable name</font></div><div><font face="verdana, sans-serif"><br>

</font></div><div><font face="verdana, sans-serif">Ex:</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">function <b>playfile</b>()</font></div><div><font face="verdana, sans-serif"><br>

</font></div><div><font face="verdana, sans-serif">end</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">variable_a = "</font><span style="font-family:verdana,sans-serif"><b>playfile</b>"</span></div>

<div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif">how to call the&nbsp;</span><span style="font-family:verdana,sans-serif"><b>variable_a</b></span><span style="font-family:verdana,sans-serif">&nbsp;, that execute function?</span></div>

<div><span style="font-family:verdana,sans-serif"><br></span></div><div><span style="font-family:verdana,sans-serif">Thanks</span></div><div><span style="font-family:verdana,sans-serif">Lloyd</span></div><div><span style="font-family:verdana,sans-serif"><br>

</span></div><div><font face="verdana,sans-serif"><br clear="all"></font><br>
</div>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>