ADC Home > Reference Library > Technical Q&As > Legacy Documents > Apple Applications >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
The Apple Media Tool and Apple Media Tool Programming Environment products have been discontinued. For more information check out: AMT/PE Discontinued. Q: I am having a problem accessing items from arrays with other arrays. I get a runtime error:
I use the following code to extract the name of a particular array and make CurrentAlphaIndex refer to that particular array:
This is the line it stops working on:
What gives? A: Because of the way the parser works (it works from right to left, instead of left to right), when you have several @ characters in the same statement, you have to use parentheses to specify how the expression should be parsed. In other words, the parser is reading:
as:
However, what you mean is:
This is also true for the other line:
The solution is to use parentheses to specify what you want. |
|