If I got this correct, you want to store the function name in a database, then select the appropriate function from the database and execute it.<br><br>You could store the function name in a codeblock then store the codeblock in the database as a string. Read the string in and execute the codeblock.<br><br>Store the function in a string like this:<br>{ ¦p1,p2,...,px¦ function(p1,p2,...,px) }<br>where p1, p2, etc. are parameters.<br>When you evaluate this codeblock it will execute the function.<br><br>Then read in the string from the table and trim it (rtrim) and use macro evaluation (&)to turn it into a codeblock. The & actually converts the string into a codeblock that can be executed. It could look like this (I will store it to a memvar MyCodeBlock):<br>MyCodeBlock:= &(rtrim(TableOfCodeblocks->fieldname)).<br><br>Then you execute the codeblock which will execute the function like this:<br>eval(MyCodeBlock, p1, p2, ..., px)<br>where p1, p2, etc. are parameters, if you have any, to pass to the function.<br><br>I just happen to read my codeblocks from a table into an array since I have so many tables open.