VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Count Number of Lines in a program where u can calculate total number of lines in multiline text bo

by SYED ZUBAIR ALI (7 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 4th August 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Count Number of Lines in a program where u can calculate total number of lines in multiline text box..

Rate Count Number of Lines in a program where u can calculate total number of lines in multiline text bo



Private Const EM_GETLINECOUNT = 186

Public Function GetLineCount(ByRef txt As TextBox) As Long
    GetLineCount = SendMessageAsLong(Text1.hWnd, EM_GETLINECOUNT, 0, 0)
End Function

'How can I use this function:
Sub Main()
    Debug.Print GetLineCount(Text1)
    'or
    'label.caption=getlinecount(text1)
End Sub

Download this snippet    Add to My Saved Code

Count Number of Lines in a program where u can calculate total number of lines in multiline text bo Comments

No comments have been posted about Count Number of Lines in a program where u can calculate total number of lines in multiline text bo. Why not be the first to post a comment about Count Number of Lines in a program where u can calculate total number of lines in multiline text bo.

Post your comment

Subject:
Message:
0/1000 characters