-
June 16th, 2003, 10:12 PM
#1
Easy VB Question
OK. Don't shoot me- this is quite the newbie programming question....
In VB (I'm using VB .Net) how do I return only part of a string?
For instance, if provided with the string "C:\thisisafile.txt " I want to return just the "C". But, I need it to return whatever is left of the colon regardless of the number of characters. So, if it was "Tony's Drive:\thisisafile.txt" I would want it to return "Tony's Drive".
Should be simple for you gurus- any takers on answering?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|