Re: Syntax & xcontrols line count
- Posted by Tone Škoda <tskoda at email.si> Apr 03, 2005
- 412 views
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)