PDA

Click to See Complete Forum and Search --> : HELP!! (AsAp)


Stick
Dec 29th, 1999, 09:57 AM
I have a String of text that changes everytime i use it But i Need to Cut the String Down>!!
The Sting is C:\somthing\somethingelse\File.??
Is there a way to get EVERYTHING after the LAST \

Clunietp
Dec 29th, 1999, 10:05 AM
If you're using VB6, you can use the Split function:


dim strTempArray() as string
dim strFilePath as string

strFilePath = "C:\my\path\to\file.doc"

strTempArray = split(strFilePath, "\")

msgbox strTempArray(ubound(strTempArray))


Tom

Stick
Dec 29th, 1999, 11:02 AM
THANK YOU ! !
Thanks Very Much!