PDA

View Full Version : Tip: Referencing properties/members of dynamic arrays



barrymavin
2014-04-27, 21:29
Lianja supports dynamic (associative) arrays as well as static arrays.
http://www.lianja.com/doc/index.php/Lianja_Arrays

Dynamic arrays look just like objects and have properties that you can reference. If you want to reference a particular dynamic array member that may not exist, use the getMember() function which will not throw an error if the property does not exist but rather return the default value which you specify as the third parameter.

662

When running .rsp server pages you also can use getParameter() which operates in the same way on the _request dynamic array and getSessionVar() that operates on the _session dynamic array.