Home > Back-end >  How to get the Memo line number
How to get the Memo line number

Time:10-30

How to get the Memo line number, thank you

CodePudding user response:

Memo1. Lines. The Count

CodePudding user response:

Total number of rows
Memo1. Lines. The Count

Line cursor
I:=SendMessage (memo1. Handle, EM_LINEFROMCHAR, memo1 SelStart, 0).

Cursor lines
Memo1. Lines. Strings [I]

More simple method
I:=Memo1. CaretPos. Y;
Memo1. Lines. Strings [I];

CodePudding user response:

Memo1. Lines. The Count

CodePudding user response:

Ha ha, the two bosses have had said, the top

CodePudding user response:

Agree with above all,,

CodePudding user response:

To be late, let the upstairs said

CodePudding user response:

Agree with above all

CodePudding user response:

Great god ~ ~ ~ ~

CodePudding user response:

Kaikai_kk
Speak of rational

CodePudding user response:

The building Lord give points average.

CodePudding user response:

Well said in detail

CodePudding user response:

Also want to know what yao, building Lord, no post,,

CodePudding user response:

Ha ha, the building brick

CodePudding user response:

Accurate answer:
Memo1. Lines. The Count
But note that memo the number of lines, one line more than the actual number of lines and automatically add a carriage return,

CodePudding user response:

Memo. Lines. The count

CodePudding user response:

On the 14th floor lyhoo163
reference response:
accurate answer:
Memo1. Lines. The Count
But beware, memo the number of lines, one line more than the actual number of lines and automatically add a carriage return,

Precisely memo1. Lines. The Count - 1
  • Related