Array Propeties i think

rocko_1981

New member
Joined
Jan 8, 2008
Messages
3
Programming Experience
3-5
Hi Everyone,

i hope someone can help me because im not quite sure of the terminology.
What i am trying to achieve is like an array with properties.

mabey something like a class property or something

for instance the ability to do something like

location(0).locationID
location(0).locationname
location(0).locationtimezone

location(1).locationID
location(1).locationname
location(1).locationtimezone

Etc Etc..

if anyone can help me it would be much appreciated, even a pointer to a right direction or information on terminology.

Thanks
 
Write a Class or Structure, add public variables (known as "fields") or properties. When you create an array (or collection/list) of this type you can do like you ask.
VB.NET:
public structure info
    public id as integer, name as string
end structure

sub method()
    dim a(4) as info
    a(3).name="Bob"
end sub
 
Back
Top