Another option is to add all these array into a family. Then you could pick family instance by name, using this condition:
System Pick ArrayFamily by evaluate: ArrayFamily.ObjectTypeName=nameVar
.
You can also use a single array object with several instances - just like you do with sprites. Each instance will store strings for one language. Define an instance variable "lang" on the array and pick array instance by variable value.
Hello dop2000,
Actually, I'm updating your video subtitles template and try two approches :
- use one and unique array and add to it a line for each different language.
- use a array for each language
I choosed the second one.
It works perfectly, but I'm sure the way I did it is absolutly not optimised : I didn't manage to create just one SubtitleParse function and had to duplicate it 3 times for each of my 3 langages. I did the same for the Show Subtitles routine. For example in the following screencap, is the parse routine for French Language. With the red line in front, Arrays I would like to be able to pick for each language.
My solution works, even if it is not optimized. I'll at yours :) it's a great lesson. Thanks