Avatar of dolphin King
dolphin King
 asked on

how can i delete one control based on its tagstring ?

I had this question after viewing Tvertscrollbox like a whatsapp layout delete messages.

this answer shows how to delete all CR := TCalloutRectangle inside Vertscrollbox

i wanted to delete only one TCalloutRectangle based on its tag string how can i do that ?

Avatar of undefined
Last Comment
Geert G

8/22/2022 - Mon
Sinisa Vuk

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
dolphin King

why when i delete some times app crashes ?
Sinisa Vuk

Is it on windows or android? Can you catch exception (try .. except ... showmessage .. end)?
dolphin King

it is on android even try block did not catch any exception
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
dolphin King

i believe this was fmx problem it self
Geert G

when you delete something always use a reverse loop ...

  for i := count-1 downto 0 do 
    // delete stuff

Open in new window

otherwise the counter goes beyond the end point