ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Gripes and Goodies
Downloads

Gripes and Goodies Software problems and suggestions

  #1  
Old 06-09-2008
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default 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!
Attached Files
File Type: txt Define101LocalVariables.txt (1.3 KB, 621 views)
__________________
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  
Old 06-09-2008
AlanZhang's Avatar
AlanZhang AlanZhang is offline
Flexsim Super Moderator
 
Join Date: Aug 2007
Location: CA
Posts: 289
Downloads: 64
Uploads: 0
Thanks: 88
Thanked 91 Times in 47 Posts
Rep Power: 225
AlanZhang is a jewel in the roughAlanZhang is a jewel in the roughAlanZhang is a jewel in the rough
Default

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
  #3  
Old 07-29-2008
Goksin Yilmaz's Avatar
Goksin Yilmaz Goksin Yilmaz is offline
Flexsim User
 
Join Date: Aug 2007
Location: ON, Canada
Posts: 21
Downloads: 11
Uploads: 0
Thanks: 23
Thanked 13 Times in 6 Posts
Rep Power: 213
Goksin Yilmaz is a jewel in the roughGoksin Yilmaz is a jewel in the roughGoksin Yilmaz is a jewel in the rough
Default What is the resolution with this gripe?

Are there any developments / suggestions for a resolution?

Thanks in advance.
  #4  
Old 11-06-2008
Joe Allen Joe Allen is offline
Flexsim User
 
Join Date: Jul 2008
Posts: 80
Downloads: 2
Uploads: 0
Thanks: 34
Thanked 5 Times in 3 Posts
Rep Power: 151
Joe Allen is on a distinguished road
Default 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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.