You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Pop.Session is a subroutine that restores the current environment parameters saved by a preceding call to Push.Session.

Syntax

Pop.Session(cursor.loc, sentence, record, id, dict, mv)

Using Pop.Session

Use Pop.Session to restore an environment after use of Push.Session. The saved values are passed from the Push.Session argument list.

Parameters

The Push.Session subroutine has the following parameters:

ParameterDescription
cursor.locUse cursor.loc to pass the cursor position saved by Push.Session.
sentenceUse sentence to pass the TCL sentence saved by Push.Session.
recordUse record to pass the record saved by Push.Session.
idUse id to pass record key saved by Push.Session.
dictUse dict to pass the dictionary variable saved by Push.Session.
mvUse mv to pass the array of @MV, @INSERT (see Appendix I, "System Variables"), and video attributes saved by Push.Session.

Values Returned

None.

See also

Push.Select subroutine

Example

/* The following code demonstrates the use of Pop.Session */
Declare subroutine Push.Session, Pop.Session, Msg
Push.Session(cursor, sentence, record, id, dict, mv)
* Call a subroutine that modified the environment parameters.
Gosub Change_Environ
Pop.Session(cursor, sentence, record, id, dict, mv)


  • No labels