Re: boolean localization problem
- From: "ekkehard.horner" <ekkehard.horner@xxxxxxxx>
- Date: Thu, 04 Jun 2009 12:42:54 +0200
Alex K. Angelopoulos schrieb:
Heinz,
It really is a boolean. What you're seeing is an artifact of using MsgBox for output display. MsgBox coerces certain data types to localized strings.
I would avoid words like "artifact", "coerce", or "mangling". All
display functions dutifully convert the data to be shown to a (localized)
text representation (probably by using CStr() internally).
If you're worried about localization issues, I would avoid using MsgBox unless really needed for actual _choices_ to be made. Instead, use WScript.Echo.
WScript.Echo behaves exactly like MsgBox; so why the "instead"? When
communicating with a user, using "True", "Wahr", or "vrai", ... seems
appropriate to me. That's why I don't like the next proposal at all.
If you do need to use MsgBox - or InputBox, it has the same issues - for getting feedback from a user, coerce the value to an integer before displaying it. The value will then be rendered as a number.
[...]
.
- Follow-Ups:
- Re: boolean localization problem
- From: Alex K. Angelopoulos
- Re: boolean localization problem
- References:
- boolean localization problem
- From: Heinz
- Re: boolean localization problem
- From: Alex K. Angelopoulos
- boolean localization problem
- Prev by Date: Re: How to remove carriage returns in a text file.
- Next by Date: Re: boolean localization problem
- Previous by thread: Re: boolean localization problem
- Next by thread: Re: boolean localization problem
- Index(es):
Relevant Pages
|