-----Original Message-----
From: Ahmed Kamal [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 26, 2004 5:22 PM
To: [EMAIL PROTECTED]
Subject: [Visual Basic 6 programming] getting specific line



how can i get a specific line in a text box to a string

for exampl ... copy the fifth line in text1 to text2

thanks for help





 
Yahoo! Groups Links



 


Your aid here is going to be the carage return. For example, have the loop
run until the num ber of a variable is 4. The line after return = 4 is going
to be your fifth line. It's very straight forward. Here is a quick example
below.

Dim intLoop As Integer
Dim strLine as String

Do Until intLoop = 4
strLine = ' The first line of the text box
intLoop = IntLoop + 1
Loop




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/visualbasic6programming/post?act=reply&messageNum=18532
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/visualbasic6programming/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to