I use a lot of debug statements in VBScript code when I'm debugging. For example
response.write("varTestVariable = " & varTestVariable & "<BR>")
This is a lot of typing and I almost always forget one quote or another. So I thought creating a sub to do this with less typing would be great. I created the following sub.
Sub Debug(pasVariable)
response.write(pasVariable.text & " = " & pasVariable & "<BR>")
End Sub
What I would like to do is first display the variable name and then its value. My question is is there any way to get the text property of a variable in VBScript in addition to the value property? If I can get this, I only need to type in the variable name. Otherwise I need to do more typing.
Thanks in advance for your help!