Variable Name and Value Properties
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.
response.write(pasVariable.name & " = " & pasVariable & "<BR>")
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 name 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!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL