Table of Contents

U2_GetList subroutine

Description

Retrieve a list of keys set using the U2_SaveList subroutine.

Syntax

U2_GetList(ListName, VolumeName, SelNum )

Parameters

The function has the following parameters:

ParameterDescription
ListNameThe name of the saved list to retrieve.
VolumeNameThe volume on which the list was saved.
SelNumThe cursor to use when retrieving the list.

Returns

This subroutine does not return a value. Use Get_Status() to check for errors.

See Also

U2_SaveList(), U2 Functions

Example

Declare subroutine Rlist, U2_SaveList, FsMsg

* Retrieve the list on the U2 Server.

U2_GetList("CUSTOMER_LIST","U2_VOLUME_1",3)

If Get_Status(errCodes) then

   FsMsg(errCodes)

end else

   keyList = ""

   loop

     readnext id else done = 1

   until done

      keyList := id : @fm

   repeat  

   keyList[-1,1] = "" ; * remove the trailing @fm

end