Looks like "Russian" is not in your dressingsList.
Hence, you get a length zero array.
Edward
At 10:30 AM 5/12/2006, Lutz, Charles D wrote:
Hi folks,
Im trying to figure out what is wrong in the
attached model; I am trying to extract an
element from an array, and from what I can tell, I think it should work.
The problem occurs with both ArrayElement and
ArrayLength (I havent tested with
similar other actors). Without one of these in
the path, I get tokens of the form e.g.
{4} on the Found Indices display. This looks
like an array of length 1. As soon as I
insert ArrayElement or ArrayLength in the flow,
I get an error, The length of the
specified array is zero.
Ive been stepping through this in Eclipse but I
havent found where the problem occurs.
Again, it seems like what is coming out of the
Expression actor are in fact arrays, so
ArrayLength (or similar) should be happy
am I missing something basic?
Thanks for any tips,
Chuck Lutz
Lockheed Martin
Systems of Systems - Modeling and Operations Analysis
BMC4I Modeling and Simulation
Moorestown, NJ
(856)638-7234 (office)
<mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
Everyone spoke of an information overload, but what there
was in fact was a non-information overload.
Richard Saul Wurman
------------
Edward A. Lee
Professor, Chair of the EE Division, Associate Chair of EECS
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
[EMAIL PROTECTED], http://ptolemy.eecs.berkeley.edu/~eal
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]