Hi Dennis

On UniVerse the output is:

ZZZ]XXX]DEF]XYZ

Which makes more sense, since the A<0> insert the value at the beginning

After each step the result of A is as follows:

A='DEF'          DEF
A<2>='XYZ'       DEF]XYZ
A<0>='XXX'       XXX]DEF]XYZ
A<0>='ZZZ'       ZZZ]XXX]DEF]XYZ

Louie
Ps. Maybe there was a typo in the result given by jBase

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Bartlett
Sent: 19 August 2008 12:07
To: u2-users@listserver.u2ug.org
Subject: [U2] Dynamic Array oddity very useful

Way back I was most impressed by the use of X=NOT(X) as a means of doing a
toggle. Now I've found another wonder...

Over on the jBase forum someone posted this:

A = 'DEF' 
A<2> = 'XYZ'
A<0> = 'XXX'
A<0> = 'ZZZ'
CRT A

When run gives
XXX]ZZZ]DEF]XYZ

So A<0> = X  is a way quicker way of writing A = X : @fm : A
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to