|
-
December 4th, 2002, 10:56 AM
#1
Unicode character????
Hi!!
I want to use the LastIndexOf method of the class string. This methods takes as first input parameter a Unicode character. I want to use this function to find the character '\' of a path name. Does anyone know how to pass the character '\' to this method???
Many thanks in advance!!
-
December 5th, 2002, 05:19 AM
#2
Code:
int nIndex = strFullFileName.LastIndexOf('\\');
string sFilePath = strFullFileName.Substring(0, nIndex);
string sFileName = strFullFileName.Substring(nIndex+1);
Last edited by MartinL; December 5th, 2002 at 05:23 AM.
-
December 5th, 2002, 05:37 AM
#3
Many thanks!!!
that works!!! exactly what I want!!!
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
|
Click Here to Expand Forum to Full Width
|