how to split string for cal one

16 views
Skip to first unread message

stefano cerbioni

unread,
Jun 25, 2024, 11:41:16 AMJun 25
to The Ring Programming Language
Hi how  split string i used  See ciao=SplitMany("one,two,three,four and five"," ,")
but  after if i cal ? ciao[1] not appear first element how can do it ? thanks



Ilir Liburn

unread,
Jun 25, 2024, 11:49:06 AMJun 25
to The Ring Programming Language
Hello Stefano,

which Ring version are you using? Following code works properly on Ring 1.20

load "stdlibcore.ring"


ciao=SplitMany("one,two,three,four and five"," ,")

? ciao[1]
? ciao

Greetings,
Ilir

Ilir Liburn

unread,
Jun 25, 2024, 11:55:32 AMJun 25
to The Ring Programming Language
Hello Stefano,

if you used in your code

See ciao = SplitMany(...)

then there is no assignment, but equality check. This should fail with Using uninitialized variable: ciao (unless existing in your code previously).

Greetings,
Ilir
Reply all
Reply to author
Forward
0 new messages