EXPIRE

From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

The Expire statement ends the current program and Run BASIC session.

Syntax

  1. EXPIRE [urlExpr$] - Expire the current program and session. Optionally redirect to urlExpr$.

Hints

If there is no url for redirection, the log in page appears.

Example

This code simply causes the session to expire:

EXPIRE 

This code includes a link to activate the Expire statement.

link #quit, "End Session", [quit]
wait

[quit]
expire

This code includes a link to activate the Expire statement and redirects the browser to the Shoptalk System Run BASIC web site.

link #quit, "End Session", [quit]
wait

[quit]
expire "http://runbasic.com"

Useful Procedures

' Place a useful function or sub using this keyword here