Tcl Powered!NeoWebScript

Home
 
Download
User Info
New User FAQ
Tutorials
Demos
Commands
Variables
Troubleshooting
Sysop Info
Sysop FAQ
Theory
Installation
Management
Tests
Troubleshooting
Feedback
Resources
Release Notes
Credits
Disclaimer
LVARPOP - Extended TCL
Synopsis * Description

Deletes an expression from a list.

Synopsis

  • lvarpop var ?indexExpr? ?string?

Description

The lvarpop command pops (deletes) the element indexed by the expression indexExpr from the list contained in the variable var. If index is omit- ted, then 0 is assumed. If string, is specified, then the deleted element is replaced by string. The replaced or deleted element is returned. Thus "lvarpop argv 0" returns the first element of argv, setting argv to contain the remainder of the string.

If the expression indexExpr starts with the string end, then end is replaced with the index of the last element in the list. If the expression starts with len, then len is replaced with the length of the list.

Copyright © 1995-1999 NeoSoft Inc., 1770 St. James Place, Suite 500, Houston, TX 77056 USA. All Rights Reserved