xsharp.eu • MultiArray XS
Page 1 of 1

MultiArray XS

Posted: Thu Apr 16, 2020 2:32 pm
by Frank Müßner
Hello,

when create a Array with String i write:

Code: Select all

Local wert as String[]
    wert:=<String>{"Value1","Value2"}
How to do with MultiArray´s?
I have Problems with this code:

Code: Select all

 Local multiwert as String[2,2]
    multiwert:=<String>{{ "one", "two" }, { "three", "four" }}

Code: Select all

XS9002	Parser: unexpected input '2' expecting {RBRKT, COMMA}		
where is my mistake?
Frank

MultiArray XS

Posted: Thu Apr 16, 2020 3:27 pm
by wriedmann
Hi Frank,
some times ago it does not worked, and it was a known issue. I don't know if this was fixed.
Wolfgang

MultiArray XS

Posted: Thu Apr 16, 2020 3:32 pm
by SHirsch
Hi Frank,

maybe this is what you need.

Code: Select all

    LOCAL multiwert AS STRING[][]
    multiwert:=<STRING[]>{ <STRING>{"one", "two"}, <STRING>{"three","four"} }
Stefan

MultiArray XS

Posted: Thu Apr 16, 2020 3:47 pm
by robert
Frankj,
Initializing multi dimensional typed arrays is not supported yet.

Robert

MultiArray XS

Posted: Thu Apr 16, 2020 5:05 pm
by Frank Müßner
Hi to all,

thank you for the Information.

@Stefan, i will try your code Sample.

Thanks.