lib-lmgr

Routines for handling "lists", e.g. the properties like those generated by lsedit

A list consists of a propdir (named listname#) which has the value representing the number of list items, and then numbered properties in the propdir representing the list elements.

LMGR-ClearElemelem# list-name dbref --Clears an element in the list -- does NOT delete
LMGR-GetElemelem# list-name dbref -- stringGet an element of a list
LMGR-PutElemelem elem# list-name dbref --Put an element into a list
LMGR-GetRangecount first-elem list-name dbref -- strrange Get a range of elements from a list: returns the element values [strings] on the stack, with on top
LMGR-FullRangelist-name dbref -- num-elements 1 list-name dbref Define entire list for getrange purposes: returns the parms on the stack, ready for LMGR-GetRange
LMGR-GetBRangecount first-elem list-name dbref -- bstrrange Get a range of elements from a list, Different from 'GetRange' in that the top element on the stack is the first element from the range. returns the element values [strings] on the stack, with on top
LMGR-PutRangevalues count first-elem list-name dbref --Put a range of elements into a list
LMGR-ClearRangecount first-elem list-name dbref --Clears a range of elements in the list -- does NOT delete
LMGR-DeleteRangecount first-elem list-name dbref -- Delete a range of elements from the list, shifting the later elements back to fill the gap.
LMGR-InsertRangevalues count first-elem list-name dbref --Insert a range of elemnts into a list
LMGR-MoveRangedest count source list-name dbref --Move [copy] a range of elements inside a list
LMGR-CopyRangedst cnt src src-lst src-ref dst-lst dst-ref -- Copy a range of elements from one list into another, inserting into the new list
LMGR-DeleteListlist-name dbref --Delete an entire list.
LMGR-Getlistlist-name dbref --Get an entire list.

feaelin@kemenel.org
lib-lmgr / Revised 2004 March 31 22:06 (Wednesday)
© 2004 Iain E. Davis

Green Web Hosting! This site hosted by DreamHost. Standards Now! Valid XHTML 1.1! Valid CSS! We rated with ICRA!