In Lianja, an easy way to declare a 1-column array is:
Is there a comparable way to define a 2-column array?Code:la = ("Hank","Barry","David")
thanks,
Hank
In Lianja, an easy way to declare a 1-column array is:
Is there a comparable way to define a 2-column array?Code:la = ("Hank","Barry","David")
thanks,
Hank
Hi Hank,
You use {..} not (..) (typo?)
See attached screenshot:
Alternatively if you know JSON you can create objects and arrays with members that are objects and arrays like this:
![]()
Last edited by barrymavin; 2014-02-08 at 20:32.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Ah, I see. Thanks!
And I used the plain parens, and it did work: good for you! <s> But, for 2-column, squiggly-brackets are required, per your example.
Hank
Actually ( .. ) doesn't work the same as { .. }.
In Lianja you can initialize all elements in an array like this.
If you assign an bracketed expression to the array it is just initialized to that value.Code:dimension la(5) la = 0
You need to use {..}.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Hmph! That's what I get for not checking it again: you're right of course, plain parens don't work. I swear it did that once <s>.
Bookmarks