|
-
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.
Sub Debug(pasVariable)
response.write(pasVariable.name & " = " & 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 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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks