🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.pascal.borland
1 messages
1 total messages Started by Saurabh Sinha Wed, 08 Dec 1999 00:00
ASCII Codes
#608
Author: 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;
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads