Daniel once taught me in a mailing list post how to use AVP arrays syntactically - i.e. to iterate through them and to implicitly create them - for which I am very grateful. For example:

   $var(i) = 0;

   while($var(i) < $dbr(ra=>rows)) {
             $(avp(s:rows_of_things)[$var(i)]) = $dbr(ra=>[$var(i),0]);
   }

But I don't see anywhere in the documentation - for the avpops module or otherwise - where someone else can learn to use them. They are not mentioned explicitly anywhere as having potentially nonscalar properties.

I think it is a good idea to fix that.

--
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to