Hi Florian

> there is a remove method!
>
> d list.RemoveAt(1)
I have tried it in the Studio by:
 Method removeFromList(element As %String) As %Integer
{
    Do ..MyListProperty.RemoveAt(1)
    quit 1
}

but I get a "<INVALID OREF>zremoveFromList+6^"... I have trouble getting in
this OREF <-> OID stuff...

>
> Also you have a Clear() method.
>
> Looping through a list:
>
> s key=""
> f {
>  s key=list.Next(key)
>  q:key=""
>  s element=list.GetAt(key)
> }
>
> You can the count by invoking Count() ;-)

well, Count() didn't work either, but I could find out the number by
$ListLength(..MyListProperty)
this is strange...

>
> HTH
> Florian

thanks!




Reply via email to