Results 1 to 5 of 5

Thread: App.EXEName and App.Path returning all UPPER CASE in EXE

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Posts
    90

    Question

    Hey Everybody,

    I'm encountering an annoying problem with App.Path and App.EXEName. It seems that when in the development environment, these values are in the correct case, but when running from a compiled EXE, these values are suddenly all UPPER CASE. For instance, if my application is located here:

    "C:\Stuff\WaCkY\Location"

    In the development environment, App.Path returns:

    "C:\Stuff\WaCkY\Location"

    But after compiling an EXE and running that, App.Path now returns:

    "C:\STUFF\WACKY\LOCATION"

    Things still work (as long as you allow for the difference when doing comparisions), but for display purposes this is ugly and inaccurate. Does anyone know why this happens and/or how to make it work properly?

    Thanks,
    -JoeyCode

  2. #2
    Guest
    this happens with me too.
    in the vbIDE it works fine, all the letters are the correct case, but stand alone, the letters are all uppercase...
    this is really odd...
    or maybe its not, i have never had to use app.path very much.. so I am not sure if its supposed to be this way..

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    case

    not the same problem but the same situtation
    using App.Path when comparing to paths stored in a database I have found a similar problem. the App.Path returned all
    lowercase while the database showes mixed case (correct).
    to get around it I use
    Option TextCompare
    this allowed the compare to just compare text regardless of the case.

    Another option was to use
    LowerCase or UpperCase against both sides of the comparison.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137
    You can use the LCase$() and UCase$() functions to convert to lowercase and UPPERCASE respectively.

    I think there is also a function that can convert To Sentence Case (First Letter Capitalised) as well but I can't remember what it is offhand.

    Regards


    Regards

    Matt Brown
    Hamilton, NZ
    VB6 C++ in Visual Studio 6sp4
    VB.net Beta 1

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can convert things to lowercase, uppercase, propercase, and some other stuff like so:

    Code:
    StrConv(App.path, vbProperCase)

Posting Permissions

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



Click Here to Expand Forum to Full Width