Search found 5 matches

by NickB
Tue Dec 04, 2007 11:52 am
Forum: Vensim
Topic: Subscripted strings/String arrays
Replies: 8
Views: 7091

Thanks Tony, I had thought of that, but I'm trying to have the model working two ways: 1. From within Excel, which works, since there's no need to change the internal model names from 'first' etc., since all the output goes into the same spreadsheet so you can get the names without having them outpu...
by NickB
Tue Dec 04, 2007 10:04 am
Forum: Vensim
Topic: Subscripted strings/String arrays
Replies: 8
Views: 7091

Another small problem I've not been having too much luck with. I have the name[sub] variable working properly, but can't import the strings from Excel. GET XLS DATA and GET XLS CONSTANTS both expect to read numerical values. Is there any way around this? Many thanks in advance (even if it's just say...
by NickB
Mon Dec 03, 2007 11:47 am
Forum: Vensim
Topic: Subscripted strings/String arrays
Replies: 8
Views: 7091

Thanks, I had already tried that, but it was creating a new subscript for each of the different elements. I moved the individual declarations to after the subscript declaration and it now appears to be behaving properly.
Many Thanks
Nick
by NickB
Mon Dec 03, 2007 11:21 am
Forum: Vensim
Topic: Subscripted strings/String arrays
Replies: 8
Views: 7091

Hi Tony, Yes, that works fine, however what I'm trying to do is specify an array of strings, e.g: sub: first, second, third some string variable[sub] :IS: 'Test1', 'Test2', 'Test3' There's one thing I found in the Vensim help, under 'String Variables in Graphs and Tables', where the following is lis...
by NickB
Mon Dec 03, 2007 10:47 am
Forum: Vensim
Topic: Subscripted strings/String arrays
Replies: 8
Views: 7091

Subscripted strings/String arrays

Hi all, I'm having some trouble defining subscripted strings. I want to have a model which will allow me to automatically update the subscript element names through Excel. To this end, I have changed my existing model to have generic subscript names (first, second etc), and now wish to declare a nam...