Solved

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

Posted on 2004-10-18
3
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

739 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