OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 02-09-2009, 16:30
Posts: n/a
Default Special square and cube characters for units

In the CorelDRAW VBA help file under Units of Measurement...Supported Query Methods, there is a line that shows how to put square and cube into a unit but I don't quite get what (U+00B2) means. Here is the quote from the file:

Powers of 2 and 3 can be specified by using special characters ² (U+00B2) and ³ (U+00B3) after the unit of measurement, as in the following examples:

{2 mm²} yields 2 sq. mm
{3 in³} yields 3 cubic inches
How do I enter those characters?


Last edited by thayne; 02-09-2009 at 17:39.
Reply With Quote
Old 02-09-2009, 17:50
Posts: n/a

Found it....

Hold down ALT and on the keypad type 0178 for ² or 0179 for ³.

Side note: Apparently the 00B2 and 00B3 are the hexidecimal numbers for the ASCII code for superscript 2 and 3. I've just never seen U+ before used to designate hex.


Last edited by thayne; 02-09-2009 at 17:54.
Reply With Quote
Old 03-09-2009, 16:29
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4

U stands for "Unicode", not Hex.

U+00B2 means a Unicode character with hex code of 00B2, or 178 in decimal.
Reply With Quote
Old 08-09-2009, 10:20
Posts: n/a

Thanks for the clarification, that makes sense.
Reply With Quote

units, vba

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
Document Units Gadget CorelDRAW/Corel DESIGNER VBA 2 14-02-2008 07:34
Characters to the right of a special character norbert_ds CorelDRAW/Corel DESIGNER VBA 3 03-05-2007 21:59
Odd square characters Beatniks CorelDRAW/Corel DESIGNER VBA 4 23-04-2007 23:38
Special Rotate ddonnahoe CorelDRAW/Corel DESIGNER VBA 7 26-04-2004 13:20
Special Characters Craig Tucker CorelDRAW/Corel DESIGNER VBA 3 12-03-2003 12:57

All times are GMT -5. The time now is 05:59.

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