Replace ( and )

i’ve use call web1.get and set list view element get response content. List element begin with ( symbol, and end with ) symbol, i’ve try to remove ( and ) from list element, but it don’w work


how can i remove ( and ) symbol

i tested replace ( by *, but it still dont work
i’ve try, it dont work

“Did you try to change “(” to “*” and couldn’t?” => i’ve try, but all elements in list view still begin with ( symbol …

Did you read my answer above ?
i told that i’ve try, but it dont work, all the elenment in list view still begin with ( symbol

What was the end result using DOIT? <= it dont know use DOIT, but i live test, and it dont work

I think you did not understand .and didn’t read what I posted
Hugs

please post the response content here so everyone knows, what we are talking about
Taifun

1 Like

i’ve use web.get, and set list view element to get response content

i’ve try to remove ( and ) symbol

( this img captured after i use DOIT)

What happens if you just set listview elements to list from csv row text … get response content. See this little red mark error ? When you click on it what dows it show ?

please provide the raw response content without further processing
to find it out, use a label
set Labe1.Text to get response Content
Taifun

1 Like

this does jt show any Do it result
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Unbenannt

Taifun

ok, so this is a csv table which has 2 columns
a1,a2
b1,b2

and you like to see in the listvview
a1
a2

b1
b2

let me suggest to use these blocks

first replace the new line character \n by something, for example X X X
then replace all commas by \n
and split the text at X X X to get a the list and assign that list to the listview elements

Taifun

this my data on google sheet, in one colum
1

and when i call web.get and set list view element to get response content
2
each element begins with ( and ends with )
i just want remove ( and ) symbol
3

it does not look as you tried my suggestion, that’s a pity…
there is no need to replace brackets if you do not create them in your blocks…
for better understanding learn how to work with lists

Taifun

i dont create brackets
when web1.get
i set listphutung element
1
and each element in listphutung appear brackets

i just want remove brackets
3

yes you do, because you create a list of lists and try to assign that to listview elements
each row is another list and that sublist is represented with ()

what exactly prevents you from trying my suggestion?

Taifun

1 Like

This is the solution to remove brackets.

Can you give me the link for that CSV? so I can figure it out?

This works for all csv tables to convert from

a1,b1,c1
a2,b2,c2
a3,b3,c3

to

a1
b1
c1

a2
b2
c2

a3
b3
c3

no matter how many columns you have
Taifun

1 Like

so means that, select list item by index is needed in order to remov brackets.