Hippocode Posted April 8, 2013 Share Posted April 8, 2013 I noticed some weird behaviour about special characters. PIO => POPUP PARAM values " x mm? " can be loaded into a string and made visible in the drawing. Defining a string in the PIO with concat (x,' mm?') will return another char for "?". The same string but different output. Does it depend on how I save my vss files ? (using notepad++) I tried looking up the ascii code to use with Chr instead, yet the number doesn't give the right symbol as stated in the table ? Quote Link to comment
Dieter @ DWorks Posted April 8, 2013 Share Posted April 8, 2013 I also experienced this. You need to avoid typing in special chars in VS and trying to use the plugin strings, which does do it for me on special chars. Quote Link to comment
MullinRJ Posted April 8, 2013 Share Posted April 8, 2013 Also be aware that characters in the upper 128 ASCII range will show differently on Mac and PC, regardless of how they are generated or recalled. Raymond Quote Link to comment
Hippocode Posted July 1, 2013 Author Share Posted July 1, 2013 (edited) To make it a bit easier for myself, I generated an ASCII table in a worksheet, listing all the symbols from chr(1) To chr(255). This table was generated by a simple script. Now, when selecting a number to be used in the naming of string with an "?" chr(145) according to my list, the used symbol is not the one listed in my worksheet. Instead I get ? , which has number 149 in my list. -I didn't change my font at any time -The list was generated a second before testing my other script with the symbol and refreshed afterwards just to be sure.. Anyone ? Edited July 1, 2013 by hippothamus Quote Link to comment
Hippocode Posted July 1, 2013 Author Share Posted July 1, 2013 (edited) I changed my ASCII table script, to list another column, being the concat of chr(X). Starting from number 128: the symbol is different ?? I guess I'll need to get used to turning it into a string at all times when using the Chr function. PROCEDURE ASC; VAR BladHd :HANDLE; i :INTEGER; WsName :STRING; BEGIN WsName:='ASCII'; BladHd:=GetObject(WsName); IF BladHd = NIL THEN BEGIN BladHd:=CreateWS(WsName,256,3); SetWsCellFormula(BladHd,1,1,1,1,'ASCII Number'); SetWsCellFormula(BladHd,1,2,1,2,'ASCII Symbol'); SetWsCellFormula(BladHd,1,3,1,3,'ASCII concat(Symbol)'); END; FOR i:=1 TO 255 DO BEGIN SetWsCellFormula(BladHd,i+1,1,i+1,1,concat(i)); SetWsCellFormula(BladHd,i+1,2,i+1,2,Chr(i)); SetWsCellFormula(BladHd,i+1,3,i+1,3,concat(Chr(i))); END; END; Run(ASC); Edited July 1, 2013 by hippothamus Quote Link to comment
Recommended Posts
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.