SolvedNeed Help Parsing Text

Posts 1–14 of 14 · Page 1 of 1
Need Help Parsing Text
help
i have this response
Code:
    \__DMserver\176.9.55.42:20000\__HQserver\176.9.55.42:20006\__SNIPERserver\176.9.55.42:20008\__TDMserver\176.9.55.42:20002\_Admin\hectic\_Email\hectic@esuba.eu\_Irc\#eSuba\_Location\DE\_Maps\Strike - Backlot - Crash - City\_Mod\PromodLIVE v2.11\_ModVer\PromodLIVE v2.11\_Website\www.esuba.eu\fs_game\mods/promodlive211\g_gametype\sd\mapname\mp_strike\\sv_hostname\e^5Suba^5.INTEL :^5:: ^5S&D server :^5:: [PromodLIVE v2.11] by n^51ping.com\sv_maxclients\24\sv_maxPing\0sv_privateClients\4\sv_punkbuster\1\ui_maxclients\24\pswrd\0\mod\1
    35 69 "YOYO_"
    0 86 "MaRiN.it"
    5 40 "mr.Beer"
    13 109 "poiytrewqasdfgh"
    10 83 "b0RGZ "
    10 110 "QAZAAAJ"
    5 67 "zaiste w chuj"
    20 42 "dAmac :RRRRRRRR"
    10 35 "Hina"
    15 57 "bra1nka"
    15 38 "ra.ra"
    20 41 "BoNes"
    10 34 "b0p."
    20 81 "gject wzoR"
    0 53 "bb"
    5 35 "Mark"
    0 32 "Justkant <3"
    0 50 "nevim.no p!ko"
    10 40 "test"
and i want this grab of textbox and paste into listview

code please?:S

35 69 "YOYO_"
0 86 "MaRiN.it"
5 40 "mr.Beer"
13 109 "poiytrewqasdfgh"
10 83 "b0RGZ "
10 110 "QAZAAAJ"
5 67 "zaiste w chuj"
20 42 "dAmac :RRRRRRRR"
10 35 "Hina"
15 57 "bra1nka"
15 38 "ra.ra"
20 41 "BoNes"
10 34 "b0p."
20 81 "gject wzoR"
0 53 "bb"
5 35 "Mark"
0 32 "Justkant <3"
0 50 "nevim.no p!ko"
10 40 "test"



Since I suck at listview...
Why not just use 3 ListBoxes?
And drag the data there?

Would go faster I think...

(I will look at your question now tho...)
listview is better :P
Quote Originally Posted by puming View Post
listview is better :P
If you like some longer codes from what I find...

Quote Originally Posted by Jorndel View Post


If you like some longer codes from what I find...

I guess I wrote it wrong soz

i want grab this of textbox and split into listview

35 69 "YOYO_"
0 86 "MaRiN.it"
5 40 "mr.Beer"
13 109 "poiytrewqasdfgh"
10 83 "b0RGZ "
10 110 "QAZAAAJ"
5 67 "zaiste w chuj"
20 42 "dAmac :RRRRRRRR"
10 35 "Hina"
15 57 "bra1nka"
15 38 "ra.ra"
20 41 "BoNes"
10 34 "b0p."
20 81 "gject wzoR"
0 53 "bb"
5 35 "Mark"
0 32 "Justkant <3"
0 50 "nevim.no p!ko"
10 40 "test"

Quote Originally Posted by puming View Post
I guess I wrote it wrong soz

i want grab this of textbox and split into listview

35 69 "YOYO_"
0 86 "MaRiN.it"
5 40 "mr.Beer"
13 109 "poiytrewqasdfgh"
10 83 "b0RGZ "
10 110 "QAZAAAJ"
5 67 "zaiste w chuj"
20 42 "dAmac :RRRRRRRR"
10 35 "Hina"
15 57 "bra1nka"
15 38 "ra.ra"
20 41 "BoNes"
10 34 "b0p."
20 81 "gject wzoR"
0 53 "bb"
5 35 "Mark"
0 32 "Justkant <3"
0 50 "nevim.no p!ko"
10 40 "test"

Well, not so sure how I do it in VB.Net :S
Quote Originally Posted by Jorndel View Post


Well, not so sure how I do it in VB.Net :S
and in C# ?
Quote Originally Posted by puming View Post
and in C# ?
Took time to think a little
Quote Originally Posted by Jorndel View Post


Took time to think a little
help me please
Quote Originally Posted by puming View Post
hm help me please
With what?
You want me to write the "code" for you?.....
Code:
Dim ListV as ListViewItem
Dim Score As String
Dim Ping As String
Dim NameX As String
then...
Code:
For Each Li As String In RichTextBox1.Lines
*code...*

ListV = ListView1.Items.Add(NameX)
Whit ListV
.SubItems.Add(Score)
.SubItems.Add(Ping)
.ImageIndex = 0
End With

Next
Or something like that...
Quote Originally Posted by Jorndel View Post


With what?
You want me to write the "code" for you?.....
Code:
Dim ListV as ListViewItem
Dim Score As String
Dim Ping As String
Dim NameX As String
then...
Code:
For Each Li As String In RichTextBox1.Lines
*code...*

ListV = ListView1.Items.Add(NameX)
Whit ListV
.SubItems.Add(Score)
.SubItems.Add(Ping)
.ImageIndex = 0
End With

Next
Or something like that...
oh soz ok this works thanks Solved

---------- Post added at 10:07 AM ---------- Previous post was at 09:28 AM ----------

Quote Originally Posted by puming View Post
oh soz ok this works thanks Solved
Ah maybe not
i want grab name score ping of this text
can u help me again please?

\__DMserver\176.9.55.42:20000\__HQserver\176.9.55. 42:20006\__SNIPERserver\176.9.55.42:20008\__TDMser ver\176.9.55.42:20002\_Admin\hectic\_Email\hectic@ esuba.eu\_Irc\#eSuba\_Location\DE\_Maps\Strike - Backlot - Crash - City\_Mod\PromodLIVE v2.11\_ModVer\PromodLIVE v2.11\_Website\www.esuba.eu\fs_game\mods/promodlive211\g_gametype\sd\mapname\mp_strike\\sv_ hostname\e^5Suba^5.INTEL :^5:: ^5S&D server :^5:: [PromodLIVE v2.11] by n^51ping.com\sv_maxclients\24\sv_maxPing\0sv_priva teClients\4\sv_punkbuster\1\ui_maxclients\24\pswrd \0\mod\1
35 69 "YOYO_"
0 86 "MaRiN.it"
5 40 "mr.Beer"
13 109 "poiytrewqasdfgh"
10 83 "b0RGZ "
10 110 "QAZAAAJ"
5 67 "zaiste w chuj"
20 42 "dAmac :RRRRRRRR"
10 35 "Hina"
15 57 "bra1nka"
15 38 "ra.ra"
20 41 "BoNes"
10 34 "b0p."
20 81 "gject wzoR"
0 53 "bb"
5 35 "Mark"
0 32 "Justkant <3"
0 50 "nevim.no p!ko"
10 40 "test"

not only this
35 69 "YOYO_"
0 86 "MaRiN.it"
5 40 "mr.Beer"
13 109 "poiytrewqasdfgh"
10 83 "b0RGZ "
10 110 "QAZAAAJ"
5 67 "zaiste w chuj"
20 42 "dAmac :RRRRRRRR"
10 35 "Hina"
15 57 "bra1nka"
15 38 "ra.ra"
20 41 "BoNes"
10 34 "b0p."
20 81 "gject wzoR"
0 53 "bb"
5 35 "Mark"
0 32 "Justkant <3"
0 50 "nevim.no p!ko"
10 40 "test"
You are asking for full code, Why?

Its simple, Read the text from the ListBox.items...
Use some way to parse the text the way you want it (Regex for example, Using Regular Expressions with .NET - C# and Visual Basic, rand link)
Insert into ListView. (Create and object type of ListViewItem, set its parameters, then add it)
Pretty sure Jorndel already typed it all for you.
is solved....
Marked solved
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?