your thought was right, the string ielkText was erroneaously passed as object variable. Once corrected, ImageEnView1.LayersAdd(ielkText) works perfectly as usual.
Al
aleatprog
Posted - Sep 14 2021 : 04:44:41 Hi Nigel,
I created a new project with only ImageEnView1.LayersAdd(ielkText) and it works, so the problem is inside the specific Delphi project I'm working on. I'll investigate and let you know.
Al
xequte
Posted - Sep 13 2021 : 16:47:37 Hi Al
I cannot see a good reason for that (assuming ielkText is not a type that you define somewhere in your own code).