Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advanced string manipulation question??

Status
Not open for further replies.

CJAI

MIS
Oct 21, 2003
224
US
Need some help with converting this string to a format that I can use (in the middle of creating a document management system).

string:
W:\Documentation Team Shares\IT\Draft\IT Procedure Manual.doc

**need to use string manipulation to pull the above BOLDED folder (IT) - since this folder will be different for different documents

thanks for your help!!!
 
use split() in a function

Code:
function GetFolder(PathString)
dim PathArray
PathArray = Split(PathString,"\")
GetFolder = PathArray(2)
end function


Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top