From: Michael R. <re...@eu...> - 2004-03-08 05:46:06
|
Hi Javier, >>> I want to write on LCD the Celsius (=BA) character, (which has the >>> 8 bits code 1101 1111) as the postfix of my Temp Widget. How can >>> I do it? >> Specify the ascii code as octal after a backslash. In your example, >> 11011111 is decimal 223 or octal 337. Try a Postfix of '\337' > If I use postfix \337, when running ldc4linux I get the error:=20 > "Evaluator: parse error in <\337>: garbage <\337>" Correct. As it's a string, you have to enclose it in within single quotes. > If I use postfix '\337', the LCD shows Y337, (really is not a "Y", > but a very similar strange character) No matter what number I use, I > allways get Yxxx. I've try writing only the slash, and I get the same > strange character. You are very right. The corresponding code vanished during=20 transformation to NextGeneration :-( Thanks for the hint! Question to the development team: where shoud this code be added again?=20 In 0.9.11 this has been in the parser, along with the Token handling.=20 There is no such thing anymore. We could add it to the config code, so the program would never see the=20 "real" backslash sequence, but always the correct ascii value. Or we could add this to the widget code, so internally the program would=20 work with the backslash sequences, and convert them to one single ascii=20 value when displaying it. The second has one big disadvantage: length calculations will fail. bye, Michael --=20 Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |