Using greek letters in a string

D

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
 
M

Martin Honnen

Dave said:
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.
"μ"
 
D

Dave

Thank you Martin.

Martin Honnen said:
.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.
"?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top