Appends an expression to a list with the passed delimiter. If no delimiter is specified, the the expression is appended using a comma (',') as the delimiter.
JSV_listAppend(expL, expE [, delimiter])
expL.listAppend(expE [, delimiter])
Returns the original list with the appended expression.
The listAppend
function uses the following arguments.
Argument | Description |
expL | Delimited list. |
expE | The expression to be appended. |
delimiter | Optional. Single delimiter used in string. Default value is a comma. |
n/a
n/a
The following lines of code
var myList= "1,2,3,4,5,6,7";
var myAppend = 44;
document.write( JSV_listAppend(myList,myAppend) );
myAppend = "100,101,102,103,104";
document.write( JSV_listAppend(myList,myAppend) );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.