Is there any command SPLICE?

3 views
Skip to first unread message

MalaiSelvan

unread,
Feb 27, 2006, 3:37:42 AM2/27/06
to jBASE
Hi,

I came to know that there is a command SPLICE which merges two dynamic
arrays. I cant see such a command in jBASE knowledge.

Do jBASE have this?
If so, whats the syntax, of where I can see the help for this>

Tks
Malai

John Fenlon

unread,
Feb 27, 2006, 4:12:26 AM2/27/06
to jB...@googlegroups.com
malai,

this is the documentation supplied with jBASE 4.1

john

SPLICE
Use the SPLICE function to create a dynamic array of the element-by-element
concatenation of two
dynamic arrays, separating concatenated elements by the value of expression.
COMMAND SYNTAX
SPLICE (array1, expression, array2)
Each element of array1 is concatenated with expression and with the
corresponding element of array2.
The result is returned in the corresponding element of a new dynamic array.
If an element of one
dynamic array has no corresponding element in the other dynamic array, the
element is returned
properly concatenated with expression. If either element of a corresponding
pair is null, null is returned
for that element. If expression evaluates to null, null is returned for the
entire dynamic array.
EXAMPLE
A="A":@VM:"B":@SM:"C"
B="D":@SM:"E":@VM:"F"
C='-'
PRINT SPLICE (A,C,B)
The output of this program is:
A-D\-E]B-F\C

MalaiSelvan

unread,
Feb 27, 2006, 4:46:34 AM2/27/06
to jBASE
Hi,

Thanks

Malai

Reply all
Reply to author
Forward
0 new messages