on closestLabel
put the frame into Here
put marker(0) into Prev
put marker(1) into Next
if (Next - Here) > (Here - Prev) then
return Prev
exit
else
return Next
exit
end if
end
Note, if they are the same distance apart, this will return the next label,
and if you wanted it to prefer the previous label, you would put
if (Next - Here) >= (Here - Prev) then
Matt Craig
Flinders Medical Centre
South Australia
Phone 61-8-204-4946
Email mnmac@flinders.edu.au