Feb 21, 2013; 19:50
Brad Lindsay
Re: Lasso9 Sessions =?windows-1252?Q?issue=2E=2E=2E=85?=
On 2/21/13 6:00 PM, John Morris wrote:
> ok, I got it working as you said, BUT=85=85
>
> insert this in to the array:
> [$sv_arrayVar->insert(-keyValue='id')]
>
> it will hold this: (a normal pair)
> [$sv_arrayVar->insert('keyValue'='id')]
>
> But it won't hold a paid if one of the items start with a -
The issue is that the first insert you are doing is not a pair while the
second one is.
Do this:
<?lasso
local(x) = array
#x->insert(-keyValue='id')&insert('moose'='hair')
#x->get(1)->type
'<br>'
#x->get(2)->type
?>
Should produce:
keyword
pair
The "keyword" type must not be serializable if it doesn't work.
Brad
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>