Closed
Description
Olá!
Sou novato nessa linguagem e não entendi esta seção do SmallBASIC User Guide:
By ARRAY
Using the command M = ARRAY(JSONString) will create a map variable from the string JSONString.
M = ARRAY("{x:1, y:2, z:3}")
s = "{1:10, 2:5, Name:"SmallBASIC"}" ' The quotation marks of the string SmallBASIC are escaped with "
M = ARRAY(s)
A letra variável M pode ter outro identificador, não? E se refere a um array M cujos elementos poderiam ser acessados via M( índice ) ou M[ índice ], por exemplo? Não entendo muito bem, mas se a string é imutável, estática, então como posso usar esse conceito em um exemplo dinâmico? Podem ilustrar com alguns exemplos, por favor.
At.te,
Luiz
Metadata
Metadata
Assignees
Labels
No labels