Quote Originally Posted by MarkT View Post
I haven't looked closely at the code but a quick glance appear that you know the name of your placeholder ahead of time and you're using that to find the position of where you want to do your insert. If that is the case couldn't you just use the Replace function instead of all the string manipulation?
Yes and no, replace would be able to remove the function, but it isn't going to find the location of where I have to insert the calls to the appropriate function.

Example
Code:
strData=replace(strData,Placeholder,FunctiontoExecute)
If I were to simply replace the placeholder with the Function, it would just write the function to the page, instead of executing it.