OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 15-03-2004, 03:39
Posts: n/a
Default how to insert a character CHR(216)?

I need to use a character that is the sign of diameter (it is the circle crossed by the line). I did it by using CHR(216). Now, in corel 12, it doesnt work - it shows wrong symbol. I think its because of "the complete unicode support". How can I fix it?

How can I use my old codepage in this case? Or how to find the caracter code which i need in unicode?
Reply With Quote
Old 15-03-2004, 07:50
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: how to insert a character CHR(216)?

Make sure your system code page is set to Western, such as English, French, German, etc.

If this doesn't work, then use VBA's ChrW function which creates a character using its Unicode code, rather than ANSI. Here is an example:

Sub TestTextDiameter()
    ActiveLayer.CreateArtisticText 0, 0, ChrW$(216) & " 12", Font:="Arial"
End Sub
P.S. You also need to use a font that has this character, obviously.
Reply With Quote
Old 17-03-2004, 08:55
Posts: n/a
Default thanks.

Thanks, it worked fine
my respect for alex...
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Text Files geabbo New product ideas 0 09-10-2003 10:57
Insert Filename & Path pmills New product ideas 4 02-09-2003 06:20
Whether the VBA can work with Unicode . Dino CorelDRAW/Corel DESIGNER VBA 5 27-08-2003 17:13

All times are GMT -5. The time now is 21:08.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com