> Tried to use 2 collections "final_cart" and "final_backorder" and add values
> via $final_cart{"itemno"}{} but that didn't work. Maybe I have to create the
> arrays for each field first and then assign the array to the collection.

* * * * * * * * * *
NOTE TO EVERYONE:

So that I can help you solve your problems, please avoid saying "it didn't 
work". That is like taking your car to the mechanic and saying, "I tried to 
drive it but it doesn't work." There is very little chance that he will be able 
to fix your car. Please be as specific as possible. Exact error messages and 
sample code saves a lot of time.

* * * * * * * * * *

Are you saying that you tried using the {} syntax before declaring or assigning 
an array to $final_cart{"itemno"}? If so, I don't know how that could be 
expected to work, because there is no array to append to. I think the docs for 
{} are fairly clear:

"If you use an empty index with an array, a new element is appended"

The key words there are "with an array". So yes, you have to either declare the 
array directly in the collection:

array longint($final_cart{"itemno"}; 0)

or declare it in another variable and assign it to $final_cart{"itemno"}.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to