Solved

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

Posted on 2004-10-18
3
334 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 125 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 125 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now