Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB Engine localizes CStr(true) - want test mach. to do same

Posted on 2004-10-18
1
Medium Priority
?
455 Views
Last Modified: 2012-05-05
I wrote an app that uses the actual text for "True" and "False".  For someone in Germany that is "Wahr" and "Falsch".  So this line:

   cstr(cbool(-1))

returns "True" for me, but "Wahr" for the German.

I want my test machine to return "Wahr" and "Falsch", so I can test my app.  I changed all the regional settings I could see to German, but it looks like I need to do something more so that the VB6 engine returns "Wahr" and "Falsch".  Anyone know what that is?
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
1 Comment
 
LVL 32

Accepted Solution

by:
Erick37 earned 1000 total points
ID: 12341126
This used to be a "bug" in VB, but it seems to have been fixed in Visual Studio 6.0 Service Pack 3.
If you have SP3 or higher, then you should not see the coerced strings.  I believe that in order for your app to display German, you will have to explicitly use that language either in code or as an option as a language string resource.

See:
FIX: Visual Basic 6.0 Booleans are Coerced to Localized Strings
http://support.microsoft.com/default.aspx?scid=kb;EN-US;216379


And regarding the Resource Files:
Multiple String Table Model
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/resed98/html/vbconmultiplestringtablemodel.asp
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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

636 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