assigning values to List() elements
Posted: Sun Apr 23, 2017 10:37 pm
I wish that PB allowed the following syntax for assigning values to dynamic lists :
instead of having to write
In my view, which I share
, not only would it make code simpler to write and read, it would also make PB more intuitive.
Code: Select all
Newlist things.s()
AddElement(things(), "thing #1")
AddElement(things(), "thing #2")
AddElement(things(), "thing #3")
AddElement(things(), "thing #4", "thing #5","thing #6")
Newlist numbers()
AddElement(number(), 1)
AddElement(number(), 4)
AddElement(number(), 7)
AddElement(number(), 33, 55, 77)
Code: Select all
Newlist things.s()
AddElement(things())
things() = "thing #1"
AddElement(things())
things() = "thing #2"
AddElement(things())
things() = "thing #3"
[etc...]
Newlist numbers()
AddElement (numbers())
numbers() = 1
AddElement (numbers())
numbers() = 2
[etc...]
