[Zope] how to access the items of an array...

Peter Bengtsson peter@grenna.net
Tue, 3 Oct 2000 18:26:24 +0100


> 
> After submitting the form, <dtml-var form_time_in> gives me following result:
> 
> ['112', 'sef', 'fg', '23', 'iuiu', 'tz', 'fgh', 'fgh']
> 
> My question is now how to access the different items of that array?
> 
> Thanks a lot for your help.
> 
> Marc
> 

Here's the syntax.
<dtml-var "form_time_in[X]"> where X is an integer.

or
<dtml-in "_.range(0,_.len(form_time_in))">
  <dtml-var "form_time_in[_[sequence-index]]"><br>
</dtml-in>


> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>