Home All Groups Group Topic Archive Search About

Using greek letters in a string

Author
29 Jun 2006 2:21 PM
Dave
Can someone tell me how to add Greek letters to a string? In this case I
need to add the Greek letter mu to a string for display on the screen and
don't know how to do it.

Thanks in advance for your help.

Dave

Author
29 Jun 2006 2:38 PM
Martin Honnen
Dave wrote:

> Can someone tell me how to add Greek letters to a string? In this case I
> need to add the Greek letter mu to a string for display on the screen and
> don't know how to do it.

..NET strings are sequences of Unicode characters so you can use Greek
letters the same way you use other letters. You might want to switch
however to save your VB source files as UTF-8, that way you can easily
write string literals with all Unicode characters e.g.
   "μ"

--

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/
Author
29 Jun 2006 2:49 PM
Dave
Thank you Martin.

Show quoteHide quote
"Martin Honnen" <mahotr***@yahoo.de> wrote in message
news:elYJgm4mGHA.2256@TK2MSFTNGP04.phx.gbl...
>
>
> Dave wrote:
>
>> Can someone tell me how to add Greek letters to a string? In this case I
>> need to add the Greek letter mu to a string for display on the screen and
>> don't know how to do it.
>
> .NET strings are sequences of Unicode characters so you can use Greek
> letters the same way you use other letters. You might want to switch
> however to save your VB source files as UTF-8, that way you can easily
> write string literals with all Unicode characters e.g.
>   "?"
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/