dxrana
07-17-2001, 07:09 PM
How to control the case of file name being written out by a VB4 program. Seems i have no control over the Case of the filename. It is outputted as all in Ucase or Lcase in diff PC's. I have posted the prog code below :
Private Sub Command1_Click()
Dim sMsg As String
Dim sFile As String
Dim lTmp As Long
lTmp = FreeFile
sFile = "c:\aBcD.txt"
Open sFile For Output As lTmp
sMsg = "yoooohoooo"
Print #lTmp, sMsg
Close lTmp
End Sub
Private Sub Command1_Click()
Dim sMsg As String
Dim sFile As String
Dim lTmp As Long
lTmp = FreeFile
sFile = "c:\aBcD.txt"
Open sFile For Output As lTmp
sMsg = "yoooohoooo"
Print #lTmp, sMsg
Close lTmp
End Sub