Arrays?

I think I’ve seen it mentioned somewhere that FB has support for arrays, but I can’t find any information on it. I know how to create a list within a variable, but I need a 2-dimensional array for what I’m trying to do. Maybe there’s a better way to handle this that I haven’t thought of. Please share your thoughts.

I have a list of languages, and a list of abbreviations for the same languages. Currently, I’m using a variable to store the LanguageListFull and a separate variable for the LanguageListAbbrv. These work great, and I use a list iterator at many points in my build to, for instance, run a solution with a different configuration for each language. However, I’ve run into a situation where I need to access both the language name and it’s abbreviation in the same action. Here, a list iterator won’t work for me because I can only get either the language or it’s abbreviation, but not both. Is there a good way to link the language name to its abbreviation and still be able to cycle through all the languages as a list?

Hi Keith,

Interesting question :slight_smile:

One thought I’ve had is to use a Project Global Script that can convert from a language name to its abbreviation (i’ve got no idea how hard or easy this would be to write…), and then use a small piece of script code in the BeforeAction of any action that needs this to set a new variable with the abbreviation as derived from passing the language name into a translation function.

.t8

Or use one list with a separator like "-"

English - eng
Deutsch - deu

and add some VB script code to split this into the full name and the abbreviation.