Guest_imported
New member
- Jan 1, 1970
- 0
Hi there,
Can any one help me regarding the API Function. Iam having a multi-lined Text Box control with vertical & horizongal scroll bars in the form. Now I want to read a particular line of text using an API Function. That is, if I want to get the text present in 8th line out of 200 lines of text present, then generally I will get the text into an array(thru SPLIT function) then refer the array element as per the line number:-
Private Function get_Line_Text(TxtBox As Object,LNo as integer) As String
Dim TBtext as string
TBtext=split(TxtBox.Text,vbcrlf)
get_Line_Text=TBText(Lno-1)
End Function
Hope You guyz have got my point. I want an API function that can directly give me the text of particular line in a multi-lined text box control. If any one of You guyz know an API that can sort out my problem, plz let me know. Thankz in advance of Your interest.
With Regards,
Nagalinga Reddy Kapu
Can any one help me regarding the API Function. Iam having a multi-lined Text Box control with vertical & horizongal scroll bars in the form. Now I want to read a particular line of text using an API Function. That is, if I want to get the text present in 8th line out of 200 lines of text present, then generally I will get the text into an array(thru SPLIT function) then refer the array element as per the line number:-
Private Function get_Line_Text(TxtBox As Object,LNo as integer) As String
Dim TBtext as string
TBtext=split(TxtBox.Text,vbcrlf)
get_Line_Text=TBText(Lno-1)
End Function
Hope You guyz have got my point. I want an API function that can directly give me the text of particular line in a multi-lined text box control. If any one of You guyz know an API that can sort out my problem, plz let me know. Thankz in advance of Your interest.
With Regards,
Nagalinga Reddy Kapu