I have this pasted into a text box in my VB applications.
===========
[RS]
9828382
my_holiday_pictures.2.rar
===========
I would like to know how to seperate all of this by...
a. throwing out the ============ lines.
b. taking the [RS], 2827273, and the filenamr and putting them all in seperate labels.
How would I go about doing this by the pressing of one button? Being able to do it backwards would be great too, but not as important.
Thank!
Page 1 of 1
Simple VB 6 stuff... I'm clueless.
#2
Posted 29 September 2005 - 05:59 PM
This will work for you 
I'll be happy to answer how it works, or any other VB 6 questions..
I'll be happy to answer how it works, or any other VB 6 questions..
Private Sub Command1_Click() Dim strings() As String strings = Split(Text1.Text, vbNewLine) Label1.Caption = strings(1) Label2.Caption = strings(2) Label3.Caption = strings(3) End Sub
This post has been edited by RayOK: 29 September 2005 - 06:00 PM
- ← (VB) How to display a gif.
- Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
- Time for an alternate for BartPE, isn't it? →
Share this topic:
Page 1 of 1



Help

Back to top








