This topic is locked

Replacing placeholders

8/1/2005 11:44:58 PM
ASPRunnerPro General questions
author

I am customizing the code.
But the fact that ASPRunner only replaces placeholdes in templates (eg ##STRCONNECTION##) in files it expects to find them in, and then in some cases ONLY once (as in the case of dbconnection.asp at least). I would like to be able to use variables from the setup wizard in any script I modify or add.
This really makes customization of the templates (code) difficult. Then I have to make additional scripts to modify the ASRunner produced code...
Eg.
I modified dbconnection.asp temlate to:
<%

strConnection = "##STRCONNECTION##"
Function GetDBInfo
GetDBInfo = "##STRCONNECTION##"
End Function

%>
Very simple, yeah?
Well, this is what ASPRunner produced:
<%

strConnection = "DSN=IT Group Database;UID=;PWD=**"
Function GetDBInfo
GetDBInfo = "##STRCONNECTION##"
End Function

%>
Not very useful.

admin 8/2/2005

Nik,
you can put GetDBInfo function to commonfunctions.asp or to aspfunctions.asp where it gonna work just fine.