| cmd_local | Function (ROM Call 0x35E)

AMS 1.01 or higher | bascmd.h

void cmd_local (CESI VarNameList);

Executes TI-Basic 'Local' command.

cmd_local creates a temporary folder (see TempFolderName for more info about temporary folders), then creates one or more VAT entries in it. This function expects the following layout on the expression stack:
END_TAG symname_n ... symname_2 symname_1
symname_1, symname_2, etc. are VAT symbol names (see SYMSTR and Tags for more info) of variables which will be created in the temporary folder. The parameter VarNameList should point to the tag of the last item. This function is used by the TI-Basic interpreter for declaring TI-Basic variables as local ones (they are kept in temporary folders).

Uses: next_expression_index, push_expression, top_estack, is_pathname, AddSymToFolder, CheckReservedName, DerefSym, FindSymInFolder, TempFolderName, ROM Call 0x5C8