Cutting strings

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2008
Posts: 136
Reputation: cVz is an unknown quantity at this point 
Solved Threads: 7
cVz's Avatar
cVz cVz is offline Offline
Junior Poster

Cutting strings

 
0
  #1
Jan 9th, 2009
Hey there,

ok i finally get my list of directories from my server , but these look like this

-x 10 test mail 4096 Dec 1 12:01 users
-x 10 test mail 4096 Dec 1 12:01 admin


etc etc...

basically i only need "users", or in the second string "admin"

So how can i cut the text to get only those texts ??

Substring(9) does not work....
Last edited by cVz; Jan 9th, 2009 at 2:26 am.
Delphi & C# programmer deluxe...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Cutting strings

 
0
  #2
Jan 9th, 2009
OK, what else from the string family have you tried?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 136
Reputation: cVz is an unknown quantity at this point 
Solved Threads: 7
cVz's Avatar
cVz cVz is offline Offline
Junior Poster

Re: Cutting strings

 
0
  #3
Jan 9th, 2009
Nevermind , substring(55) eventually worked ... lalala, happy happy

now i converted it to a textbox and then used substring wich works .... awesome , thanks LiZR
Last edited by cVz; Jan 9th, 2009 at 3:53 am.
Delphi & C# programmer deluxe...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC