Wanted to overwrite some selected text in a field - so what is the number of
the character before the selection? Well that depends if the selection is
empty or not...
This is the function I ended up creating. Anyone know a better way? Does it
work cross platform (tested on a Mac)?
function charBeforeSelection
put word 4 of the selectedChunk into startCharNum
put word 2 of the selectedChunk into endCharNum
if endCharNum > startCharNum then
return startCharNum
else
return endCharNum - 1
end if
end charBeforeSelection
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.