KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Choice Lists in Project Mode
PRODUCT: 4D | VERSION: 19 | PLATFORM: Mac & Win
Published On: February 14, 2022

Be weary when using choice lists in project mode. When converting your application to project mode, lookout specifically for usages of the commands SAVE LIST and ARRAY TO LIST.

  • SAVE LIST is ignored in a project mode compiled or built structure (.4DZ)

  • ARRAY TO LIST is ignored in a project mode compiled or built structure (.4DZ), if a name of a choice list is passed in the 2nd parameter.

These commands are ignored becuase they modify lists that are saved inside the structure file and a compiled project mode structure (.4DZ) is zipped & read-only.

Note: Since ARRAY TO LIST is only ignored when a list name is passed, this command will still work when a list reference is passed becuase in this case, the list is saved in memory and never written to the structure (ie. passing a list reference in the 2nd parameter).