View Single Post
  #3 (permalink)  
Old September 22nd, 2013, 08:51 AM
tfurnivall tfurnivall is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Line count in section

Thanks for the pointer Shasur,

The Start and End position are character positions (within the document, to be sure), but there is no easy way to turn them into line numbers. At the moment I'm stuck with building a separate table to track line numbers, and then iterating line-by-line over each section in turn (Yecch).

Does anyone have any (relatively) easy way to do as Shasur suggests, and convert character positions to line numbers? (Variable length lines, of course, along with Section Breaks)

Tony
Reply With Quote