Array operation attempted on variable not DIM'd. (runtime error &he7) in ...AArwSoW9/pkg:/source/grid.brs(105)
105: if m.grid_content[msg.GetData()][msg.GetIndex()] <> invalid then
console_log("grid_content["+Stri(j)+"]["+Stri(i)+"]")
34. grid_content[ 0][ 17]
35. grid_content[ 0][ 18]
36. grid_content[ 1][ 0]
37. grid_content[ 1][ 1]
print "Focused msg: ";msg.GetMessage();"row: ";msg.GetIndex();
print " col: ";msg.GetData()
****PRODUCES****
Focused msg: row: 0 col: 2
for j = 0 to (rsp.row.Count()-1)
list = CreateObject("roArray", rsp.row[j].video.Count(), true)
for i = 0 to (rsp.row[j].video.Count()-1)
console_log(m.grid_content)
****PRODUCES****
Type Mismatch. (runtime error &h18) in ...AAen09b6/pkg:/source/main.brs(65)
065: print Stri(m.debug_counter)+". "+message
...
Local Variables:
message &h4010 bsc:roArray, refcnt=2
console_log(m.grid_content[msg.GetIndex()])
****PRODUCES****
Type Mismatch. (runtime error &h18) in ...AA2jrvaZ/pkg:/source/main.brs(65)
065: print Stri(m.debug_counter)+". "+message
...
Local Variables:
message &h0010 bsc:roArray, refcnt=2
console_log(m.grid_content[msg.GetIndex()][msg.GetData()])
****PRODUCES****
Type Mismatch. (runtime error &h18) in ...AAEAkRAV/pkg:/source/main.brs(65)
065: print Stri(m.debug_counter)+". "+message
...
Local Variables:
message &h4010 bsc:roAssociativeArray, refcnt=2
print m.grid_content
<Component: roArray>
<Component: roArray>
<Component: roArray>
print m.grid_content[0]
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
print m.grid_content[0][2]
shortdescriptionline2: [ShortDescriptionLine2]
shortdescriptionline1: [ShortDescriptionLine1]
stream: <Component: roAssociativeArray>
sdposterurl: http://www.domain.com/5.jpg
description: [Description]
director: [Director]
rating: E
streamformat: mp4
length: 7402
hdposterurl: http://www.domain.com/0.jpg
title: Tuesday 2 of 3
contenttype: episode
actors: <Component: roArray>
"DukeOfMarshall" wrote:
Sorry about that. I used "print" directly and here are the results:
print m.grid_content
<Component: roArray>
<Component: roArray>
<Component: roArray>
print m.grid_content[0]
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
print m.grid_content[0][2]
shortdescriptionline2: [ShortDescriptionLine2]
shortdescriptionline1: [ShortDescriptionLine1]
stream: <Component: roAssociativeArray>
sdposterurl: http://www.domain.com/5.jpg
description: [Description]
director: [Director]
rating: E
streamformat: mp4
length: 7402
hdposterurl: http://www.domain.com/0.jpg
title: Tuesday 2 of 3
contenttype: episode
actors: <Component: roArray>
Array operation attempted on variable not DIM'd. (runtime error &he7) in ...AArwSoW9/pkg:/source/grid.brs(105)
105: if m.grid_content[msg.GetData()][msg.GetIndex()] <> invalid then
if type(m.grid_data) <> "roArray" then stop ' If this line crashes, m.grid_data is not a valid array
if type(m.grid_data[msg.GetData()]) <> "roArray" then stop ' If this line crashes, m.grid_data[msg.GetData()] is not a valid array