P
p byers
Hi
If I put a line of VBScript into a variable, is it possible to
execute/process that line of Script.
I want to do something like:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For Each item In Request.Form
cVBScriptLine = "c" & item & " = Request.Form(""" & item & """)"
''The next Line proves to me that I have got the correct ScriptLine
Response.Write (cVBScriptLine & "<br>")
'' I want to Execute?Process cVBScriptLine
'' Wondered if Eval might do it
'' It does not throw an Error but it does not do it !!
Eval( cVBScriptLine )
Next
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Where I have loads of data appearing, it will save me mountains of
typing like
cTopRow = Request.Form("TopRow")
etc
etc
In other languages, I seenm to remember that it is called "substitution"
!!!
Thanks in anticipation
Pete (Northolt UK)
If I put a line of VBScript into a variable, is it possible to
execute/process that line of Script.
I want to do something like:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For Each item In Request.Form
cVBScriptLine = "c" & item & " = Request.Form(""" & item & """)"
''The next Line proves to me that I have got the correct ScriptLine
Response.Write (cVBScriptLine & "<br>")
'' I want to Execute?Process cVBScriptLine
'' Wondered if Eval might do it
'' It does not throw an Error but it does not do it !!
Eval( cVBScriptLine )
Next
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Where I have loads of data appearing, it will save me mountains of
typing like
cTopRow = Request.Form("TopRow")
etc
etc
In other languages, I seenm to remember that it is called "substitution"
!!!
Thanks in anticipation
Pete (Northolt UK)