MOVELIST

Top  Previous  Next

 

The MOVELIST statement moves a select list. The MOVELISTV statement is similar but creates a select list variable.

 

 

Format

 

MOVELIST src.list TO tgt.list {KEEP}

 

where

 

src.listidentifies the select list to be moved.

 

tgt.listidentifies the list to which the select list to be moved.

 

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

 

 

The MOVELIST statement allows an application to move a select list. It can be used with either the numbered select lists or with select list variables. The KEEP option copies the list, leaving the original source list unchanged. If this option is not present, the source list is cleared.

 

If src.list is not a select list variable, it is interpreted as being the number (0 to 10) of a numbered select list.

 

MOVELIST treats tgt.list as a list number. Use of MOVELISTV treats tgt.list as the name of a select list variable.

 

 

 

Examples

 

MOVELIST 7 TO 0

 

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

 

MOVELISTV 7 TO MYLIST KEEP

 

This command transfers the current content of list 7 to a select list variable named MYLIST, retaining list 7.

 

 

See also:

MOVE.LIST, Select lists