home *** CD-ROM | disk | FTP | other *** search
-
- Private Function FixSectionName(sOldName As String) As String
-
- Dim strNewName As String
-
- ' Remove the [brackets] around the section name
- ' field. The Windows API functions add the brackets
- ' for you.
- If Left$(sOldName, 1) = "[" Then
- strNewName = Mid$(sOldName, 2)
- Else
- strNewName = sOldName
- End If
- If Right$(sOldName, 1) = "]" Then
- strNewName = Left$(strNewName, Len(strNewName) - 1)
- End If
- FixSectionName = strNewName
-
- End Function
-