Please can some one help..
I have this.........
macro ChangeText
select if text contains 'abc'
change text to "abcdefgh" <------------ I need the syntax to make this work
end macro
I have tried using the record macro function within isodraw but it uses the coordinates of the text that is to be changed
thanks in advance
###########################################################################################
I fixed it with this piece of programming I found in this forum................
macro ChangeText
DEFINE el as Element
Select if text contains 'abc'
IF (exists(activeDoc.firstSelectedElement)) THEN
el = activeDoc.firstSelectedElement
WHILE (exists(el))
IF (el.type="Text") THEN
el.text.string = stripExt(activeDoc.Name) <------------------- The important bit!!
END IF
el = el.nextSelectedElement
END WHILE
END IF
end macro