Jump to content
Developer Wiki and Function Reference Links ×

What happened to Chr


Recommended Posts


Can anyone tell me how to get ° into my code/text please? It seems to have been overlooked in VW2016

procedure AngleText;

var pt1, pt2, pt3, pt4 : vector;


GetPt (pt1.x, pt1.y);

GetPtL (pt1.x, pt1.y, pt2.x, pt2.y);

GetPtL (pt2.x, pt2.y, pt3.x, pt3.y);

pt4 := (pt1 + pt3) / 2;

TextOrigin (pt4.x, pt4.y);

CreateText (Concat (Num2Str (2, AngBVec (pt1 - pt2, pt3 - pt2)), Chr (176)));


run (AngleText);

Link to comment

Thanks Kevin, That worked.

However, the only reason why I used Chr instead of '°' in 2016 is that '°' stoppe working in 2016. Worked fine in previous versions.

So, no Alt0176 in macros, no Chr(176) {replaced by 161} in macros, but Alt0176 is still working when typing text within the drawing. A bit of a mishmash hey.

I thought VW used the ASCII western character set.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...