Hi,

I have some questions to Lists in Cache Script please:

I want to store a "tree" like List in a Class Property - and therefore I am
looking for
c o p y    a   List:

Class...

Property Parent As Class...
Property Parents As Class... [ Collection = list ];

Method ParentSet (Parent...)
{
    set i%Parents = Parent.Parents.Insert(Parent)
}

... does not work ???

Tests on the cache terminal does also not work - Lists and
Object-Collections as Lists
seams to be different Lists, so Insert does not work on "simple" Lists,
and $LISTLENGTH() does not work on Object-Collections as Lists  ???

set l = $LISTBUILD(1,2,3)
set l2 = l ... works
set l2 = l.Insert(4) .. does not work ???

So how to copy an list containing oref's ?
* set i%Parents = Parent.Parents ?
and how to Insert some new Object at the end (push) ?

and how can I get the Length of such a list ?

...many questions - please help me with this cache script language
I searched all over the on-line documentation and the books ...

brg
Dipl.-Ing. Werner Riegler
www.memeticor.com
[EMAIL PROTECTED]




Reply via email to