How to control the case of file name being written out by a VB4 program

Sharky Forums


Results 1 to 5 of 5

Thread: How to control the case of file name being written out by a VB4 program

  1. #1
    Sushi
    Join Date
    Jun 2001
    Location
    sydney
    Posts
    3

    Question How to control the case of file name being written out by a VB4 program

    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

  2. #2
    Hammerhead Shark
    Join Date
    Feb 2001
    Posts
    1,612

    Post

    VB4? That was released after Windows 95, right?

  3. #3
    Sushi
    Join Date
    Jun 2001
    Location
    sydney
    Posts
    3

    Post

    Yes, thats right was released after win95

  4. #4
    Mako Shark dighn's Avatar
    Join Date
    Nov 2000
    Location
    Vancouver, BC Canada
    Posts
    3,171

    Post

    Hmmm.... try the API function CreateFileEx() and see if that solves this problem...

    ------------------
    So easy to use, no wonder it's number one!!!
    Where do you want to go today?
    Member of NT Jocks
    Tesla coils are not weapons
    .

  5. #5
    Reef Shark
    Join Date
    Apr 2001
    Location
    Austin, TX
    Posts
    371

    Post

    Just off the cuff... could you rename it to the proper name after you've written the file?

    ------------------
    Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
    main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
    Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
    main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •