2
I need to pick a value between the tags of a text, so I found here on the site the function:
function ExtractText(aText, OpenTag, CloseTag : String) : String;
It worked perfectly, but with only the first value found.
But if I have more Tags equal, to add all values within these Tags equal in a Listbox, as I should, because I did not find anywhere. Example:
<t1>teste1</t1>
<t2>teste2</t2>
<t1>teste3</t1>
<t1>teste4</t1>
<t3>teste5</t3>
If I took the tags t1 and /t1, I wanted to display it like this in Listbox:
teste1
teste3
teste4
Have you ever thought about doing this in a loop? In while for example. This could be done throughout the listbox and return only when there is the tag for example.
– Giovani