cmd_movevar Function (ROM Call 0x362)

AMS 1.01 or higher bascmd.h

void cmd_movevar (SYM_STR SymName, SYM_STR SrcFolder, SYM_STR DestFolder);

Executes TI-Basic 'MoveVar' command.

cmd_movevar moves a TI-Basic variable from one folder to another. The parameter SymName should point to the variable tag of the symbol which will be moved (see SYMSTR). SrcFolder and DestFolder should point to the variable tags of the source and the destination folders, respectively. If the destination folder does not exist, cmd_movevar creates it. This function may be used instead of the low-level function SymMove from the vat.h header file.

This function may cause heap compression.


Uses: ER_throwVar, strcat, strcmp, strlen, ParseSymName, CheckSysFunc, DerefSym, FolderAdd, FolderFind, SymMove, SymSysVar, VarRecall


See also: cmd_copyvar, cmd_rename, SymMove