Android Question listview problem to eliminate euro

fifiddu70

Well-Known Member
Licensed User
Longtime User
hello, i have this problem, i have a listview with this element of example:
1: Coca cola - Euro 2.50
2: Redbull - Euro 4.00
1: Spaghetti naples - Euro 7.50

i need to print in printer pos without price,
in precedent post i have post one similar problem but only 1 elements, now i need insert elements with euro and eliminate euro before of print,
i hope in help.
 

eps

Expert
Licensed User
Longtime User
I guess all the elements are in a single attribute?

If they always have a - character in there, between the Name and 'Euro' then you could get the position in that string of the - and then substring from 0 to the position of the - character, possibly minus 1 on the position.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

fifiddu70

Well-Known Member
Licensed User
Longtime User
DonManfred i have specificated in precedent post one problem similar with one elements in listview, now my question is, when exist other elements in listview, ho to resolve? excuseme for duplicate post,
I thought it was necessary to make a new post.
 
Upvote 0
Top