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 |
|
Downloads |
Gripes and Goodies Software problems and suggestions |
#1
|
||||
|
||||
Is it possible that you can have only 100 local variables in your code?
I attached a code which just defines 100 local variables. If I put this code in a Script window and execute it than the following error message appears:
Flexscript Error VIEW:/active/scriptinputconsole140731168/script>curtext line 101 syntax error, unexpected $undefined, expecting ';' Could not finish parsing because of previous errors. If I delete the last local variable than the error is gone. Looks like it make no difference if you define double, int or string. So it looks like that there is a limitation of 100 local variables which is not a lot. I know that there are work around but who wants to use work arounds? But maybe I just did something wrong. Hopefully!
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions." |
The Following User Says Thank You to Tom David For This Useful Post: | ||
RalfGruber (06-14-2008) |
#2
|
||||
|
||||
Hi Tom,
I just tested your code, it seems you are right. Good to know there is such a limitation. I am curious to know that there is a good reason to have such limitation or it is just a bug.
__________________
Best, Alan |
#4
|
|||
|
|||
I have the same problem
I just ran up against this limitation after A LOT of coding before the moment of truth. I am really not looking forward to going line by line through thousands of lines of code and creating a more generic variable name schema workaround.
Any information from Flexsim on this limitation would be greatly appreciated. I would like to know if I have days of rework ahead of me or not. |
Thread | Thread Starter | Forum | Replies | Last Post |
Access flexsim-dll-project in Google Code | AlanZhang | Wiki Articles | 0 | 06-27-2008 12:43 PM |
Code autocompletion is great! Would like more shortcuts. | AlanZhang | Gripes and Goodies | 2 | 02-20-2008 10:04 PM |
Access to the tree variables | Iulian Marin Ion | Q&A | 2 | 02-06-2008 09:15 AM |
Model Startup Code | Lolke Koopmans | Q&A | 4 | 12-14-2007 09:51 AM |
GUI & linked variables | Iulian Marin Ion | Q&A | 2 | 11-27-2007 10:23 PM |