Archived

This topic is now archived and is closed to further replies.

pve

XML FS9 max case values

Recommended Posts

Hi all Can any one confirm max number of values allowed in a element using case. I need to use 144.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

While not a direct answer. IIRC the max number of characters in a line is 256. It wouldn't be too hard to split up the case values in smaller increments though.Roman

Share this post


Link to post
Share on other sites

Hi,Paul, you can't use 144 stack values with a case operator. Only 23 will be recognized, because those plus the case operators are the max number of values supported by the stack's array of data.Roman, there is no limit of characters in a line of a script, but instead a number of bytes that can be parsed, which are around 250 Kb per XML gauge. There are indeed some different limits for individual and , mostly related with memory limits assigned to each one of these structures.Tom

Share this post


Link to post
Share on other sites

Tom, I hope this has changed, but i remember in FS02 I was writing a long code and spent days trying to figure out why it wouldn't work. I loaded up in notepad with word wrap off, if it was more than 1 line it wouldn't work, if I shortened it to 1 line it did. (256 chars per line)Besides that was the beginning days when my coding was just plain awfull, ultra long.......... BUT IT WORKED YAYYYY !!!! HHMMMM ???????Roman

Share this post


Link to post
Share on other sites

Roman, I don't know about how it was in FS2002, but that's the way it works in FS9 and FSX so far I've tested.There is a special situation when working with long scripts, that you can't split the line wherever you want -best is to separate them by %() areas.Tom

Share this post


Link to post
Share on other sites

Thanks for the good info guys, Don't know another way to do this so I will split the cases and try them in a macro. Paul

Share this post


Link to post
Share on other sites