Description

The Delete_Save_Select subroutine erases a saved list of keys.

Syntax

Delete_Save_Select (targetName)

Parameters

The Delete_Save_Select subroutine has the following parameters:

ParameterDescription
targetNameThe name which the select list was saved as using Save_Select.

The targetName may be in the following formats:

1. <targetName>

2. <tableName><space><targetName>

The algorithm executes in the following manner:

If targetName contains a space then the assumption is that the first word is <tablename> and a check is performed to determine if the <tablename> is valid. If the <tablename> is valid then any wording after the initial space is the targetName .If the tablename is not valid then the whole string is used as the targetName and the list of keys is saved to SYSLISTS.

See also

Activate_Save_SelectClearSelectRListSave_Select

Example

* this code segment erases the list saved as SYSREPOS_LIST
 
declare subroutine Delete_Save_Select
 
Delete_Save_Select("SYSREPOS_LIST")
 
* This code will delete the saved SYSREPOS_LIST record in the MY_LISTS table.
 
Delete_Save_Select( "MY_LISTS SYSREPOS_LIST" )

listName: The name of the list (or optionally the name of the table the list will reside in followed by the list name, space-separated)

My logic in each of these routines is the same:

- Is there a space in the listName?

- If Yes, is the first word a valid table?

o If Yes, then use the first word as the table name, and anything after the space as the list name;

o If No, then the user must_really_ want a listname that includes a space, so let them have it, and default to SYSLISTS;

- If No, then default to SYSLISTS

  • No labels