Solved

boolean in a string use another language

Posted on 2004-10-13
3
223 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

785 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