M
Mr. B
I want to return the name of the drawing file (DWG) from the end of a string.
The string will be of varying lengths... as well as the drawing file name
itself.
I could do it the long way by getting the length of the string, and
subtracting one character at a time until I hit the '\' character... then
I'll know how much to subtract to get my file name.
An example of the string is:
"P:\Projects\2004\10-02-230 (ProjectName\600 Drawings\E101.dwg"
But is there an easier (and faster) way to search for the last '\' character
in my string? (keep in mind that the number of '\' in each string will also
vary).
Thanks in advance!
Regards,
Bruce
The string will be of varying lengths... as well as the drawing file name
itself.
I could do it the long way by getting the length of the string, and
subtracting one character at a time until I hit the '\' character... then
I'll know how much to subtract to get my file name.
An example of the string is:
"P:\Projects\2004\10-02-230 (ProjectName\600 Drawings\E101.dwg"
But is there an easier (and faster) way to search for the last '\' character
in my string? (keep in mind that the number of '\' in each string will also
vary).
Thanks in advance!
Regards,
Bruce