Hi WDAY,
You could check first if there is an image tag and only then execute your code. Otherwise it will take the entire string as a headline:
dim line as string
dim segments(2) as string
dim textobj as xpTextObject
If InStr(1, text, "") > 0 Then
line = Replace(text, ">", ";")
segments = Split(line, ";", 2)
line = segments(1)
else
line = text
end if
if Scene.GetObjectByName("Headline", textobj) then
textobj.text = line
end if
Ofcourse you need to replace the "" with your imagetag which is in the string.
Is this what you were looking for?
Best regards,
Kenneth
#XPression