Hello I have a text file I read using FSO. In it I would like to have a parameter for a default value where I can specify an ASP function like Date or Time (or a custom function).
The file looks something like this:
default1=date()
default2=myCustomFunction()
I can easily read the value into a variable (sDefault1) doing something like this sDefault1=iniFile("default1"
. Note: iniFile() is a function I wrote to read text files.
How can I evaluate\use a string value that represents a function?
Another way to put this would be, what is the syntax to make the string variable sDefault1 run as a function?
Thanks very much for your advice,
Michael
The file looks something like this:
default1=date()
default2=myCustomFunction()
I can easily read the value into a variable (sDefault1) doing something like this sDefault1=iniFile("default1"
How can I evaluate\use a string value that represents a function?
Another way to put this would be, what is the syntax to make the string variable sDefault1 run as a function?
Thanks very much for your advice,
Michael