Locked Home » Forums » Legacy & Archived » Archived Content » Vanguard » Vanguard Premium Discussions

Array help : Vanguard Premium Discussions

Posted: February 24th, 2007
User avatar
Total Posts:199 Joined:2005
Im' trying to do this

Dim MyArray(2,2)
MyArray(0,0) = "myfirst name"
MyArray(0,1) = 44

MyArray(1,0) = "myfirst name"
MyArray(1,1) = 55

for i = 0 to 2
if ( MyArray(i,0) = "myfirst name" ) then
' ok found my name.
end if


However I keep getting TYPE mismathcs HEeeeeellp please
Posted: February 26th, 2007
User avatar
Total Posts:199 Joined:2005
Nm,figured it out myself,
Posted: February 26th, 2007
User avatar
Premium
Total Posts:6718 Joined:2004
Download my simple necro script. It has an example of how to setup an array, and how to access it.

_________________
Use Search first, ask questions later!
Posted: February 26th, 2007
User avatar
Total Posts:199 Joined:2005
II had downloaded it, I think my problem was something to do with Another area ,THe debugger doesn't tell you if your problem just the line and the error. My problem was nestled somewhere deep in another file.

I ended up making a class, and having the arrays inside the class :)
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 1 guest
Locked