Discussion:
unicode
(too old to reply)
Ben Watts
2008-04-04 20:45:04 UTC
Permalink
Why does the Crystal function chrw( integer ), which is supposed to return a
Unicode character based on the integer that is put in parentheses, not
always return the character it should? Example: chrw(2666) should return a
diamond symbol. Instead it just returns the blank square character.
unknown
2010-04-04 06:10:34 UTC
Permalink
Because 2666 is a hex code, prefix the character code with "&H". For example, to get the Black Diamond Suit character:

ChrW(&H2666)



Ben Watts wrote:

unicode
04-Apr-08

Why does the Crystal function chrw( integer ), which is supposed to return a
Unicode character based on the integer that is put in parentheses, not
always return the character it should? Example: chrw(2666) should return a
diamond symbol. Instead it just returns the blank square character.

Previous Posts In This Thread:

On Friday, April 04, 2008 4:45 PM
Ben Watts wrote:

unicode
Why does the Crystal function chrw( integer ), which is supposed to return a
Unicode character based on the integer that is put in parentheses, not
always return the character it should? Example: chrw(2666) should return a
diamond symbol. Instead it just returns the blank square character.


Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Datagrid as ComboBox Dropdown Part 2
http://www.eggheadcafe.com/tutorials/aspnet/5af72df7-5b0b-4ac2-be96-e24127040bbf/wpf-datagrid-as-combobox.aspx
unknown
2010-04-04 06:13:47 UTC
Permalink
Because 2666 is a hex code, prefix the number with "&H". For example, to print the Black Diamond Suit character:

ChrW(&H2666)



Ben Watts wrote:

unicode
04-Apr-08

Why does the Crystal function chrw( integer ), which is supposed to return a
Unicode character based on the integer that is put in parentheses, not
always return the character it should? Example: chrw(2666) should return a
diamond symbol. Instead it just returns the blank square character.

Previous Posts In This Thread:

On Friday, April 04, 2008 4:45 PM
Ben Watts wrote:

unicode
Why does the Crystal function chrw( integer ), which is supposed to return a
Unicode character based on the integer that is put in parentheses, not
always return the character it should? Example: chrw(2666) should return a
diamond symbol. Instead it just returns the blank square character.

On Sunday, April 04, 2010 2:10 AM
j m wrote:

Print Unicode(hex) characters with ChrW()
Because 2666 is a hex code, prefix the character code with "&H". For example, to get the Black Diamond Suit character:

ChrW(&H2666)


Submitted via EggHeadCafe - Software Developer Portal of Choice
Break the Roles in SharePoint Lists
http://www.eggheadcafe.com/tutorials/aspnet/c3ac8915-3861-4406-bec7-42f2d9110d79/break-the-roles-in-sharep.aspx
Loading...