|
-
Jun 2nd, 2000, 08:07 AM
#1
Thread Starter
Lively Member
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
-
Jun 2nd, 2000, 08:16 AM
#2
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..
-
Jun 2nd, 2000, 09:22 AM
#3
_______
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
-
Jun 2nd, 2000, 09:44 AM
#4
Addicted Member
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
-
Jun 2nd, 2000, 09:53 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|