Truncate long path names
Posted by: fredometro on
May 25th, 2007 |
Filed under: MS-Access
This function is useful when displaying or logging long path names.
Too long path names are annoying in a log file, because they are very often the same. Truncating the path to show only the beginning and the end helps readability.
Public Function TruncatedPath(TheText)
Dim pos1 As Integer
Dim pos2 As Integer
Dim ch As String
Dim i As Integer
pos1 = InStr(3, TheText, “\”)
i = Len(TheText)
ch = Mid(TheText, i, 1)
While ch <> “\”
i = i - 1
ch = Mid(TheText, i, 1)
Wend
pos2 = Len(TheText) - i + 1
TruncatedPath = Left(TheText, pos1) & “…” & Right(TheText, pos2)
End Function


February 19th, 2009 at 3:22 pm
I sholud find more info about this post
February 19th, 2009 at 4:41 pm
We agree with all in this post! Thanxx
February 20th, 2009 at 11:53 am
The most interestung post of this day!
February 21st, 2009 at 11:42 am
After this post I think different!
December 12th, 2009 at 9:18 am
Young Jess
December 12th, 2009 at 9:19 am
Shyla Stylez VIP
December 12th, 2009 at 9:21 am
Magical Feet
December 12th, 2009 at 9:22 am
Wet Lesbian Videos
December 12th, 2009 at 9:23 am
Lexi Diamon
December 12th, 2009 at 9:24 am
Mandy Muff
December 12th, 2009 at 9:25 am
Big Sophie
December 12th, 2009 at 9:26 am
Just Ebony Sex
December 12th, 2009 at 9:27 am
Mia Isabella
December 12th, 2009 at 9:28 am
Rachel Aziani
December 12th, 2009 at 9:29 am
Sexy Mature Honeys
December 12th, 2009 at 9:30 am
Gay Ebony Dating
December 12th, 2009 at 9:31 am
Wild Natalie
December 12th, 2009 at 9:32 am
Barely Evil
December 12th, 2009 at 9:33 am
I Bang Myself
Add A Comment
You must be logged in to post a comment.