Re: boolean localization problem



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.

[...]
.



Relevant Pages

  • Re: boolean localization problem
    ... What you're seeing is an artifact of using MsgBox for output display. ... MsgBox coerces certain data types to localized strings. ...
    (microsoft.public.scripting.vbscript)
  • Re: HP calc. Customer Service
    ... limitations of the existing OS (data types, argument ranges, file ... If you do C/C++ without any OS, you have no such limitations. ... it would take almost 10 hours to display the result, ... other programmer had to code his or her own special OS etc... ...
    (comp.sys.hp48)
  • Re: Recordsource - display problem
    ... Record Source property is set to the same table, ... and the data types are correct. ... Dim tableName As String ... data tab of the form's properties, will display all appropriate ...
    (microsoft.public.access.formscoding)
  • Re: Yes/No checkbox is no longer a checkbox
    ... will display all the data fields in textboxes. ... If you want a boolean field to be displayed in a checkbox, ... Compact and repair will remove the bloat from a database, ... the data types and for text fields, ...
    (microsoft.public.access.formscoding)
  • Re: unable to connect to SQL Database using Access
    ... I seem to remember something about Access being unable to view certain SQL ... Server data types in a linked table. ... For example Access cannot display a "bigint" ...
    (microsoft.public.sqlserver.connect)