🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #608

ASCII Codes

#608
From: Saurabh Sinha
Date: Wed, 08 Dec 1999 00:00
39 lines
2064 bytes
Hi

I have often seen characters such as: �����Ѫ������, written in the actual
pascal program. Well, I could get these codes into pascal by opening this
mail thru' pascal, if I use writeln('�����Ѫ������'); The codes are printed
fairly well. However, assume I have to use the following procedure (attached
below). Then, the output does not print. The procedure works well with
ordinary characters.

Any ideas on how I could print these special characters using SpecLn?

Thanks.

Saurabh
==================================================================

Attachment:


  procedure specln(AnswerRow, AnswerCol : Real; str1 : Txt1);
  var
    AnswerRowInt, AnswerColInt, jj, nr : Integer;
    Char1 : Char;

  begin
     AnswerColInt := Round(AnswerCol*12);
    AnswerRowInt := Round(8*((2*AnswerRow)-1))-8;
    if AnswerRow <> 1 then AnswerRowInt := AnswerRowInt-2;
    if mode = 1 then
       AnswerRowInt := 2*AnswerRowInt;
    EraseText(AnswerRow, AnswerCol, Length(str1));
    for jj := 1 to Length(str1) do
      begin
        Char1 := str1[jj];
        nr := Ord(Char1);
        DrawChar(AnswerColInt, AnswerRowInt, nr);
        AnswerColInt := AnswerColInt+12;
      end;
  end;
Technical Details
Message-ID: <384d9e60.0@news1.mweb.co.za>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fd1d1,9267a906b2ffe05b,start
X-Google-Attributes: gidfd1d1,public
X-Google-Thread: 111659,9267a906b2ffe05b,start
X-Google-Attributes: gid111659,public
X-Google-Thread: 10261c,9267a906b2ffe05b,start
X-Google-Attributes: gid10261c,public
X-Google-Thread: 102601,9267a906b2ffe05b,start
X-Google-Attributes: gid102601,public
From: "Saurabh Sinha" <sinha@mweb.co.za>
Subject: ASCII Codes
Date: 1999/12/08
Message-ID: <384d9e60.0@news1.mweb.co.za>
X-Deja-AN: 557926268
X-Trace: 8 Dec 1999 01:55:12 +0200, pta-dial-196-2-22-184.mweb.co.za
X-MSMail-Priority: Normal
X-Priority: 3
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,ctdl.lang.pascal,de.comp.lang.pascal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300