Page 1 of 1

Loadcase using an array element as an ID

Posted: June 13th, 2018, 6:01 pm
by AriSilva
array string a(10);
string x;
loadcase(dict, a(1)); //compiler error
loadcase(dict, x); //ok

Re: Loadcase using an array element as an ID

Posted: June 13th, 2018, 6:16 pm
by Gregory Martin
You'll see that that is the same with a string list. The string object is implemented like a dictionary variable, which is why loadcase happens to work with it, though that function is really intended to take dictionary variables.

If you really need to use an array, you should be able to do this:
if locate(dict, =, a(1)) and loadcase(dict) then