"btpoole" wrote:
Thanks. If there is no roInteger why does the debugger show roInteger?
"EnTerr" wrote:"btpoole" wrote:
Thanks. If there is no roInteger why does the debugger show roInteger?
It does?! Where?
Show a snippet from the console pls
Invalid
1272
<Component: roArray> =
[
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
<Component: roAssociativeArray>
]
roInteger
Invalid
1922
roInteger
Invalid
1913
roInteger
Invalid
1909
roInteger
Invalid
1905
roInteger
Invalid
1901
roInteger
Invalid
1896
roInteger
Invalid
1922
roInteger
Invalid
1913
roInteger
Invalid
1909
roInteger
Invalid
1905
roInteger
Invalid
1901
roInteger
Invalid
1896
<Component: roArray> =
[
false
]
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
Current Function:
008: decoder = JSONDecoder()
009: json = decoder.decodeJSON(m.shows)
010: if json <> invalid
011: m.names = CreateObject("roArray", 10, true)
012: m.nids = CreateObject("roArray", 10, true)
013: m.Categories = CreateObject("roAssociativeArray")
014: for each cat in json.categories
015: if type(cat.shows) = "roArray" and cat.shows.Count() <> 0
016:* m.Categories[cat.nid] = CreateObject("roAssociativeArray")
017: m.names.Push(cat.title)
018: m.nids.Push(cat.nid)
019: i = 0
020: print cat.shows
Type Mismatch. (runtime error &h18) in pkg:/source/loadShows.brs(16)
016: m.Categories[cat.nid] = CreateObject("roAssociativeArray")
print type(cat.nid)
"TaylorAtWild" wrote:
011: m.names = CreateObject("roArray", 10, true)
012: m.nids = CreateObject("roArray", 10, true)
013: m.Categories = CreateObject("roAssociativeArray")
014: for each cat in json.categories
015: if type(cat.shows) = "roArray" and cat.shows.Count() <> 0
016:* m.Categories[cat.nid] = CreateObject("roAssociativeArray")
017: m.names.Push(cat.title)
...