?
Solved

German (or other non-English) VS6 returns what for CStr(true)?

Posted on 2004-10-18
3
Medium Priority
?
348 Views
Last Modified: 2008-02-01
I have the English XP and VS6 sp5(five).
   CStr(true) returns "True"
   msgbox "" & true displays "True"

On a test machine:

I changed my regional settings to German in XP and VS6-NO service pack
   CStr(true) returns "True"
   msgbox "" & true displays "True"
I changed my regional settings to German in Win 98 and VS6-NO service pack
   CStr(true) returns "True"
   msgbox "" & true displays "Wahr"
Installed an sp5 msvbvm60.dll on this Win 98 German
   CStr(true) returns "True"
   msgbox "" & true displays "True"

A German customer is getting this:
   CStr(true) returns "Wahr" (which I didn't ever get)

Is this expected behavior for XP (German)?  I don't know if he has VS6.  Would it be expected for German VS6?
0
Comment
Question by:kevinbenedict
3 Comments
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 500 total points
ID: 12344439
This has to do with the operating system he is using. If you installed the same version of his OS you would get the same response.

-Brian
0
 

Author Comment

by:kevinbenedict
ID: 12348028
So setting my regional options to German and Installing German OS are two different things.  In order to reproduce/test this problem, then, do I need to install a German OS?  Or is there some upgrade that will take my existing English OS and change it to German?
0
 
LVL 29

Assisted Solution

by:leonstryker
leonstryker earned 500 total points
ID: 12351553
>>In order to reproduce/test this problem, then, do I need to install a German OS?  

Yes.

>> Or is there some upgrade that will take my existing English OS and change it to German?

No.

General in situations like yours you should avoid testing for a specific string, you should test for integers and/or vb constants instead, since the application will handle this internally.

Leon
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question