|
|
|
Click here to copy the following block |
Function GetShortenedFileName(ByVal strFilePath As String, _ ByVal maxLength As Long) As String Dim astrTemp() As String Dim lngCount As Long Dim strTemp As String Dim index As Long If Len(strFilePath) <= maxLength Then GetShortenedFileName = strFilePath Else astrTemp() = Split(strFilePath, "\") lngCount = UBound(astrTemp) For index = 1 To lngCount - 1 astrTemp(index) = "..." GetShortenedFileName = Join(astrTemp, "\") If Len(GetShortenedFileName) <= maxLength Then Exit For Next End If End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|