With
CreateStructure you can create a structured
GuiXT variable.
Example
CreateStructureV[customer] account name1 name2 city country
The variable
V[customer]
is created as a structured variable. Its components are:
V[customer.account],
V[customer.name1],
V[customer.name2],
V[customer.city],
V[customer.country].
Other component names such as
ClearV[customer] are not allowed and will produce a syntax error
message.
With
Clear
V[customer]you can reset all components.
The string
representation
"&V[customer]"uses the JavaScript object notation ("JSON").
Example:
GuiXT
Set V[customer.account] "1000"
Set V[customer.name1] "M&S GmbH"
Set V[customer.name2] "Winter tires"
Set V[customer.city] "London"
Set V[customer.country] "UK"
The string representation &V[customer] is as follows: {
"account" : "1000" , "name1" : "M&S GmbH" , "name2" : "Winter
tires"
, "city" : "London" , "country" : "UK" }
This
adds all components of another structured variable or table
variable (CreateTable).
Example:
CreateStructure
V[customerrow]include=V[customer]
selected This
defines the following components: account, name1, name2, city, country,
selected
The
include=
option may be used multiple times.
Please note
Maximum component
number
In a
single
statement up to 60 components can be specified directly. If you
need more components, please split them with
include=.
Example with 80 components: