Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VB9 last string
Name: wille Date: April 14, 2008 at 04:37:52 Pacific OS: WINDOWS XP Home Eidition CPU/Ram: 3.2GHz
Comment:
Hello. I'm having some trouble with this string, well path. When the user of this program that I'm creating has entered a path to a picture, using an openfiledialog I need to extract only the filename from that string. Ex: say openfiledialog1.filename = "C:\folder\anotherfolder\somefile.txt" then I need the "somefile.txt" from that string including the .txt especially. I get the feeling I missing out on something easy here. Help plz thanks in advance
Summary: Hi! Mechanix2Go, it can be done as follows 1) using strcat() strcat(name, first); strcat(name, last); 2) using strncat() strncat(name, first, strlen(first)); strncat(n...
Summary: Do you mean a particular string? Or whatever the last string happens to be? Big difference. ===================================== If at first you don't succeed, you're about average. M2...
Summary: hi guys.. This function does not work..I get some wierd messages. string getFirstName(vector set, int first, int last) { string max; if(first==last) return set[first]; else { ...