MOVE.LIST

Top  Previous  Next

 

The MOVE.LIST command moves a select list from one numbered list to another.

 

 

Format

 

MOVE.LIST src.list TO tgt.list {KEEP}

 

where

 

src.listis the list number (0 to 10) of the select list to be moved.

 

tgt.listis the list number (0 to 10) to which the select list to be moved.

 

KEEPretains the original state of src.list, creating a copy of the list.

 

 

The MOVE.LIST command allows an application to transfer the contents of a numbered select list from one list to another. The KEEP option copies the list, leaving the original source list unchanged. If this option is not present, the source list is cleared.

 

 

Examples

 

MOVE.LIST 7 TO 0

 

This command transfers the current content of list 7 to the default list (list 0), clearing list 7.

 

MOVE.LIST 7 TO 0 KEEP

 

This command transfers the current content of list 7 to the default list (list 0), retaining list 7.

 

 

See also:

MOVELIST (QMBasic), Select lists