[sr-dev] AVP arrays
Alex Balashov
abalashov at evaristesys.com
Wed Oct 7 01:44:21 CEST 2009
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
More information about the sr-dev
mailing list