|
|
|
|
|
| | |
|
Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Public Variables |
From: |
Nuller |
Date: |
7/27/1999 1:31:27 AM |
IP: |
165.247.35.151 |
As a general rule for all programmers, you should never have to do that.
Creating variables at runtime would be a very dangerous proposition. You can easily dynamically change memory allocation for a variable, however.
To answer your question, there is a way to do this, but not in the way youre thinking. You need to use a collection (not sure if this is available in VbScript). A collection associates name/value pairs in an array like structure. Here is an example:
Dim mycol as Collection
mycol.Add "name" value
Now you can refer to that variable like this:
mycol("name")
Thats returns the value.
You should check my syntax... but that works in Visual Basic and VBA. Not sure about VbScript. |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|