Solved

boolean in a string use another language

Posted on 2004-10-13
3
224 Views
Last Modified: 2011-04-14
Hi,

I have a problem,

as you can see in my comment, depending of the way I write a boolean in a string, the language of what is written change.  The problem I have, it's on my workmate's computer there is no problem.  The language of the string written is english.  I can't modify the code.  

So, I know how to debug the code, but do somebody can tell me advice to know how to look

Dim a As Boolean
Dim x As String

a = True

x = "hello " & CStr(a) ' -> hello true
x = "hello " & a       ' -> hello vrai


thank you
0
Comment
Question by:weeb0
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 125 total points
ID: 12301702
Have a look here:

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

Expert Comment

by:Erick37
ID: 12301722
Since you cannot change the code, you can change the default language of the computer to English.

Hope it helps!
0
 
LVL 1

Author Comment

by:weeb0
ID: 12306906
Thank you,

   HUmmmm.... Stupid microsoft software ...
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

730 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