On Jul 14, 8:56 pm, Hüseyin Kartal <[EMAIL PROTECTED]> wrote:
> for ( Object idObject : scope.getIds ( ) )
> {
> Scriptable obj = ( Scriptable ) scope.get ( idObject.toString ( ) ,
> scope ) ;
> Object u = Context.jsToJava ( obj.get ( "20080804-8S6126A1" ,
> scope ) , String.class ) ;
> result.add ( u.toString ( ) ) ;
> }
>
> this works fine.
>
> but what about the used index, if it is dynamic. how can i iterate over the
> array without knowing the index.
? Just iterate over the 'obj' in the same way like you iterate over
the 'scope'? (using getIds()).
Helge
--
http://helgehess.eu/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino