I want to store tracks (url’s of media items), track info (data about those media items) and posteritems in a single data structure that can be returned from a function.
which would be returned to a function called from a loop:
dataobject=CreateObject(“RoArray”,1,true) 'should this be an RoArray or an RoAssociativeArray?
for each blah in xmltracklist
dataobject.push(getTracks(blah))
next
now how do I access the particular items from dataobject?
This is fine (though you might consider a bit more whitespace ).
“jbrave” wrote:
which would be returned to a function called from a loop:
dataobject=CreateObject("RoArray",1,true)[/color] [color=#BF0000]'should this be an RoArray or an RoAssociativeArray?
for each blah in xmltracklist
dataobject.push(getTracks(blah))
next
This is pretty close, though the first line can be much simplified:
dataobject = []
“jbrave” wrote:
now how do I access the particular items from dataobject?