array string a(10);
string x;
loadcase(dict, a(1)); //compiler error
loadcase(dict, x); //ok
Loadcase using an array element as an ID
-
- Posts: 1793
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Loadcase using an array element as an ID
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 you really need to use an array, you should be able to do this:
if locate(dict, =, a(1)) and loadcase(dict) then