Re: Syntax & xcontrols line count

new topic     » goto parent     » topic index » view thread      » older message » newer message

Tony Steward wrote:

> I have used this:
> LineNum = sendMessage(SyntaxID,EM_LINEFROMCHAR,-1,0) + 1
> 
> This tends to lag behind and often be one line out.
> I hope there is a better way!


you have to read file in "r" mode, not "rb" mode.

if that dooesnt work convert newlines to some other format (there are these
newlines: {13,10}, {10, 13}, 10 or 13 i think)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu