Discussion:
CHR$() and international characters.
(too old to reply)
Olav
2009-01-26 14:20:13 UTC
Permalink
Hello,

In PB/WIN v8.04 I would like to construct a string using ASCII codes, as in
CHR$(some_ascii_code), but this seems not to work for international
characters in the range 128-255. At least not in a MSGBOX string.I've
searched for a solution, but didn't find one, So this message is just to let
out some frustration over yet another limitation in Powerbasic's compilers.
On the other hand these characters prints correctly to the screen in PBCC,
at least those three I'm interesting in.

With the numerously number of international customers, which Bob Zale likes
to believe he has, I would expect him to offer these customers better
solutions to their programming needs.

Have a nice day, as Tim Robbins likes to throw around.
--
Olav
Michael Mattias
2009-01-26 14:38:48 UTC
Permalink
Post by Olav
Hello,
In PB/WIN v8.04 I would like to construct a string using ASCII codes, as
in CHR$(some_ascii_code), but this seems not to work for international
characters in the range 128-255. At least not in a MSGBOX string.I've
searched for a solution, but didn't find one, So this message is just to
let out some frustration over yet another limitation in Powerbasic's
compilers.
On the other hand these characters prints correctly to the screen in PBCC,
at least those three I'm interesting in.
With the numerously number of international customers, which Bob Zale
likes to believe he has, I would expect him to offer these customers
better solutions to their programming needs.
Be assured the string is being created correctly in PB/WIN 8.04.

As far as displaying that string, MSGBOX does not have a lot of options..
Your better bet to display "international characters" is to create a Unicode
string and use the Windows API function MessageBoxW (the unicode version).
(MSGBOX is a 'wrapper' for MessageBoxA with "US-biased" options preselected
for you).


MCM
Olav
2009-01-26 15:24:25 UTC
Permalink
Thanks, I'll look into this...or is it that?
--
Olav
Post by Michael Mattias
Post by Olav
Hello,
In PB/WIN v8.04 I would like to construct a string using ASCII codes, as
in CHR$(some_ascii_code), but this seems not to work for international
characters in the range 128-255. At least not in a MSGBOX string.I've
searched for a solution, but didn't find one, So this message is just to
let out some frustration over yet another limitation in Powerbasic's
compilers.
On the other hand these characters prints correctly to the screen in
PBCC, at least those three I'm interesting in.
With the numerously number of international customers, which Bob Zale
likes to believe he has, I would expect him to offer these customers
better solutions to their programming needs.
Be assured the string is being created correctly in PB/WIN 8.04.
As far as displaying that string, MSGBOX does not have a lot of options..
Your better bet to display "international characters" is to create a
Unicode string and use the Windows API function MessageBoxW (the unicode
version). (MSGBOX is a 'wrapper' for MessageBoxA with "US-biased" options
preselected for you).
MCM
Loading...