ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
||||
|
||||
Storing an Array in the tree structure.....
Hello
We would like to store an array in the tree structure at a particular place, and we are just wondering if there is any specific command to do so....... We are able to read from the database with the following code. stringarray test = makearray(86400); for(int i = 1; i <=86400; i++) { test[i] = dbgettablestr(i,2); } dbclose(); We would like to store this array in NN1>Table1/1 which is a new node we created in the tree structure. What we are trying to do is, later on when our model runs, on accessing 1, we would be able to get our array. Thanks |
#2
|
||||
|
||||
Hi,
Why don't you make a global array? (Tools -> Global Variables) then you can use it througout your code where ever you want. Other option is to not use an array but simply use a treenode structure to begin with. Create a label and using the table commands (settablesize etc) create a table to store your data. |
Thread | Thread Starter | Forum | Replies | Last Post |
array size | juan alberto | Q&A | 0 | 12-21-2010 03:03 AM |
Storing a C++ class pointer in a flexsim object | Steven Hamoen | Q&A | 2 | 04-15-2010 09:19 AM |
data structure | juan alberto | Q&A | 1 | 09-23-2009 05:21 AM |
Can't get value from global array | Joe Allen | Q&A | 7 | 10-30-2008 09:06 AM |