InsertListMember

Top  Previous  Next

×V4.2.1Ø

S

A

W

WS

ü

ü

Syntax -

InsertListMember <ListName> <Position> <Value1> ... <ValueX>

       Where:

       <ListName> is the user defined name that is assigned to the list.

<Position> is a numeric value or a variable that contains a numeric value.

       <Value1> is a variable or a literal string.

       <ValueX> is a variable or a literal string.

 

Description:

The InsertListMember command inserts a list member to an existing list as defined by <ListName> at the position specified by <Position>.  This command cannot be used for lists that were created with SortLists configured to Yes.  The command behaves like the PutListMember command except that the PutListMember command always adds the list member to the end of the list whereas InsertListMember inserts the list member in a specific location within the list.  An error will result if the position specified is greater than one more than the number of list members.

 

Sample:

The following statement uses the InsertListMember to insert a record in the 15th position.

InsertListMember Patients 15 PtNo MRN SSN DOB DOS Bal

 

See Also:

CreateList

PutListMember

SortLists