Array that is not an array (solved)
Posted: Wed Aug 10, 2016 2:36 pm
Hello,
I have a mystery to solve with your help.
I have a list like this:
I create an array with this code:
########CODE#######
function exifProcessFileArray pData
repeat for each line tLine in pdata
put item 1 of tLine into tnome1
put item 2 of tLine into tnome2
put item 3 to -1 of tLine into tArray [tnome1] [tnome2]
end repeat
return tArray
end exifProcessFileArray
#####END OF CODE#####
Well, the array tArrya is not an array! I get the first set of keys: tArray["EXIF"], tArray["Thumbnail"] and tArray["Image"], but any other data is unreachable!!!
the code:returns false!!!
But the IDE debugger says that is an array!
Look this picture:

What is it? How can I reach the tArray["EXIF"]["ColorSpace"] ?
I have a mystery to solve with your help.
I have a list like this:
Code: Select all
Image ,ImageDescription,SAMSUNG CAMERA PICTURES,ASCII,158
Image ,Make,SAMSUNG,ASCII,190
EXIF ,Model,NX3000,ASCII,198
Thumbnail ,Orientation,1,Short,54
Image ,XResolution,72/1,Ratio,230
Image ,YResolution,72/1,Ratio,238
Image ,ResolutionUnit,Pixels/Inch,Short,90
Image ,Software,FW Ver 01.02,ASCII,246
Image ,DateTime,2015:10:24 16:28:49,ASCII,262
Image ,YCbCrPositioning,2,Short,126
########CODE#######
function exifProcessFileArray pData
repeat for each line tLine in pdata
put item 1 of tLine into tnome1
put item 2 of tLine into tnome2
put item 3 to -1 of tLine into tArray [tnome1] [tnome2]
end repeat
return tArray
end exifProcessFileArray
#####END OF CODE#####
Well, the array tArrya is not an array! I get the first set of keys: tArray["EXIF"], tArray["Thumbnail"] and tArray["Image"], but any other data is unreachable!!!

the code:
Code: Select all
put tArray["EXIF"] is an array
But the IDE debugger says that is an array!
Look this picture:

What is it? How can I reach the tArray["EXIF"]["ColorSpace"] ?