Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread save and printing a special character
Mon, Feb 16 2009 5:27 AMPermanent Link

"Carlos"
I need to save and printing later a character string with a "special"
character

I should insert the special character "great equal to" or the "less equal
to"
with a single character, not as   > =   or    <=
I read in a previous message to a wide string but I do not understand how to
do.

Thanks

Carlos

Mon, Feb 16 2009 2:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Carlos,

<< I need to save and printing later a character string with a "special"
character >>

What character and to what type of field are you saving it ?   Certain
unprintable characters can be saved to string/memo fields, but #0 (NULL
terminator) cannot.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Feb 17 2009 3:02 AMPermanent Link

"Carlos"

"Tim Young [Elevate Software]" <timyoung@elevatesoft.com> ha scritto nel
messaggio news:87E833E4-D5EB-42ED-9492-11738CC5A843@news.elevatesoft.com...
> Carlos,
>
> << I need to save and printing later a character string with a "special"
> character >>
>
> What character and to what type of field are you saving it ?   Certain
> unprintable characters can be saved to string/memo fields, but #0 (NULL
> terminator) cannot.
>
> --
> Tim Young
> Elevate Software
> www.elevatesoft.com
>

As mentioned above the character are "great equal to" and  "less equal to"
e.g.: Arial font U+2264  and U+2265
Type of field is your choice. Now is string but I can change it...

Carlos


Tue, Feb 17 2009 2:10 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Carlos,

<< As mentioned above the character are "great equal to" and  "less equal
to" e.g.: Arial font U+2264  and U+2265 >>

Ahh, sorry about that - I thought that the >= and <= bit was about what you
wanted to do with the characters.

So you want to insert Unicode characters into an ANSI string ?  I'm not sure
if this will be possible due to issues with the leading byte in the two-byte
Unicode character.  What I would try is to implicitly cast the WideChar to
an ANSI string like this:

  MyField.AsString:=WideChar(Word(2264));

But I'm not sure if this will work with the default code page conversion
that takes place when Delphi converts WideStrings to AnsiStrings.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image