Customer Login
.
Webmail Login
.
About Us
.
Contact Us
Windows Rookie Package
Windows Pro Package
Windows Advanced Package
Linux Rookie Package
Linux Pro Package
Linux Advanced Package
Base Dedicated Servers
Business Dedicated Servers
Enterprise Dedicated Servers
Radical Support
How-To Articles
FAQ's
Codebank
Forums
Billing
Go to:
Articles List
Arrays How To Part 1 : The Basics
[
Part 1
|
Part 2
|
Part 3
|
Part 4
]
Arrays in ASP have a zero based index. This means that the first item in the array is myArray(0). The size of arrays in ASP can be changed while still maintaining the data that is currently in them by using the following syntax:
Dim myArray(1)
myArray(0) = "this"
myArray(1) = "that"
ReDim Preserve myArray(2)
myArray(2) = "theother"
In doing this elements 0 and 1 are saved while enlarging the array.
How to create:
Dim myArray(20)
How to enlarge:
ReDim Preserve myArray(3)
NOTE: If you are creating a small array you can also create it like this:
Dim FavoriteFoodArray
FavoriteFoodArray = Array("green eggs","greasy burgers","chili fries")
•
High Assurance SSL. Try it for Free!
•
Need A Merchant Account?
Get Brinkster Charge!
•
Build Your Own Photo Ablum. It's Free!
•
Start Your Own Email Marketing Campaign
For as Little as
$9.95/mo
.
•
Linux Packages From
$4/mo
•
Windows Packages From
$4/mo
Home
|
Domains
|
Shared Hosting
|
Dedicated Hosting
|
Partner
|
Support
|
About Us
|
Webmail
Copyright ©
Brinkster Communications Corporation
All Rights Reserved.
Privacy Policy
|
Legal
|
Contact Us
Close X
Live Chat
Support
Live Chat
Billing
Live Chat
Support
Live Chat
Sales.
Click Here
to get support using Skype.
Don't have Skype?
Click here
to download it for FREE!
X Close
Click Here
to get online Live Help.
Click Here
to get support using Skype.
Don't have Skype,
click here
to download for FREE.