indiedev91
(Indie Dev 91)
August 22, 2022, 11:04am
1
I want to store the names of three movies in an array, but I want to enter the names in a single input dialog
For example: movie1, movie2, movie3
As I am creating an array, I would like to store these 3 movies names, but I don’t know how to separate them with commas
Veera_Raj
(Veeraraj Sethuraman)
August 22, 2022, 11:06am
2
string_var.split(","c).toarray()
1 Like
indiedev91
(Indie Dev 91)
August 22, 2022, 11:08am
3
@ Veera_Raj what is c in (","c)
Gokul001
(Gokul Balaji)
August 22, 2022, 11:13am
4
Hi @indiedev91
You can also try with this expression
Split("movie1, movie2, movie3",",")(0)
Here → “,” is the separator
c -. character
Output
(0) → movie1
(1) → movie2
Regards
Gokul
1 Like
Hey!
Try Like this:
Assign arrMovies = {"movie1","movie2", "movie3"}
Use For each activity and Pass the arrMovies
in each iteration you’ll get movie1,movie2 and movie3
Now use Message box to display the each Movie Name
OR
Use assign activity to store the value
Reference:
Regards,
NaNi
Hi @indiedev91 , I hope you are doing well.
Regarding your problem I am attaching a workflow as an solution, I hope it will help you to solve the problem.
Movies.zip (2.3 KB)
Pass movie names separated by commas in input dialog box example: hello brother,dark,inception
Thanks & Regards,
Shubham Dutta
system
(system)
Closed
August 25, 2022, 11:58am
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.