H
Howard Kaikow
In another newsgroup, somebody reported that filenames are case sensitive in
Word 2004.
What does the following do in Word 2004?
Option Explicit
Private intFile As Integer
Private Sub OpenCaseSensitinity()
Dim strFilePath As String
strFilePath = "d:/command.txt"
intFile = FreeFile
OpenIt strFilePath
OpenIt UCase$(strFilePath)
OpenIt LCase$(strFilePath)
OpenIt "d:/cOmmANd.tXt"
End Sub
Private Sub OpenIt(strTargetFile As String)
On Error Resume Next
Open strTargetFile For Input As #intFile
If Err.Number = 0 Then
Debug.Print "OK: " & strTargetFile
Close #intFile
Else
Debug.Print "Booboo: " & strTargetFile
End If
End Sub
Word 2004.
What does the following do in Word 2004?
Option Explicit
Private intFile As Integer
Private Sub OpenCaseSensitinity()
Dim strFilePath As String
strFilePath = "d:/command.txt"
intFile = FreeFile
OpenIt strFilePath
OpenIt UCase$(strFilePath)
OpenIt LCase$(strFilePath)
OpenIt "d:/cOmmANd.tXt"
End Sub
Private Sub OpenIt(strTargetFile As String)
On Error Resume Next
Open strTargetFile For Input As #intFile
If Err.Number = 0 Then
Debug.Print "OK: " & strTargetFile
Close #intFile
Else
Debug.Print "Booboo: " & strTargetFile
End If
End Sub