Page 1 of 1

Location of a specific word

Posted: Tue Mar 03, 2009 8:03 pm
by andyh1234
Is it possible to find out the x,y location of a specific word in a field?

Id need to place a 'target' style graphic over specific words, I can already highlight them, but I need to find their position so i can

set the loc of graphic "target" to......

Ive tried to the loc of word x of line y of field "myfield" but that didnt work, any other ideas?

Thanks

Andy

Posted: Tue Mar 03, 2009 8:27 pm
by Mark
Hi Andy,

You can select the word and get the selectedLoc. I believe that the returned co-ordinate is the topleft of the word.

Best,

Mark

Posted: Tue Mar 03, 2009 10:52 pm
by andyh1234
Thanks Mark