Groups
Sign in
Groups
The Ring Programming Language
Conversations
About
Send feedback
Help
how to split string for cal one
16 views
Skip to first unread message
stefano cerbioni
unread,
Jun 25, 2024, 11:41:16 AM
Jun 25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to The Ring Programming Language
Hi how split string i used
See
ciao=Split
Many
(
"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 AM
Jun 25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
Jun 25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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