Forum Discussion

coredump's avatar
coredump
Visitor
11 years ago

Associative Array Errors - n00b

I am trying to create an associative array of coordinates, something like { {x:40,y:50}, {x:40,y:51}} , etc.


a_poster_pos = CreateObject("roAssociativeArray")

' l_x and l_y are incremented in a loop
position = {}
position["x"] = l_x;
position["y"] = l_y;

a_poster_pos.Append(position);



Since I am new to this, it of course doesn't work and I get "Syntax Error" compilation errors