array that holds two values

Started by
1 comment, last by Draco5869 20 years, 8 months ago
Is there a way in VB that i can get an array or some datatype that holds two values, like a name and a value for instance? I can''t just use two diff arrays because each value has to go with each name and i sort the names, thanks guys! ----------------------------------------------------------- Like a sponge!
-----------------------------------------------------------Like a sponge!
Advertisement
An array can hold different types of variables ($,% etc..) So just make an array with your data you want in it.


[edited by - anthonyrh1 on August 16, 2003 9:42:47 PM]
-Trying to sound smart-Check out:www.digitalvigilante.comwww.crash.to/crashware
you can make your own type, thusly:

type MyDataType
name as string
data as integer
end type

and then you have your array:

MyArray as MyDataType(1 to whatever)

and access thusly:

myDataType(index).name
myDataType(index).data
Because you touch yourself at night!

This topic is closed to new replies.

Advertisement