Rev 619 | Blame | Compare with Previous | Last modification | View Log | Download
{.PA}{*******************************************************************}{* SOURCE CODE MODULE: MC-MOD01 *}{* PURPOSE: Display grid and initialize all cells *}{* in the spread sheet. *}{*******************************************************************}procedure Grid;var I: integer;Count: Char;beginLowVideo;For Count:='A' to FXMax dobeginGotoXY(XPos[Count],1);Write(Count);end;GotoXY(1,2);for I:=1 to FYMax do writeln(I:2);NormVideo;if AutoCalc then Flash(65,'AutoCalc: ON' ,false)else Flash(65,'AutoCalc: OFF',false);Flash(33,' Type / for Commands',false);end;procedure Init;varI: ScreenIndex;J: Integer;LastName: string[2];beginfor I:='A' to FXMAX dobeginfor J:=1 to FYMAX dobeginwith Screen[I,J] dobeginCellStatus:=[Txt];Contents:='';Value:=0;DEC:=2; { Default number of decimals }FW:=10; { Default field whith }end;end;end;AutoCalc:=True;FX:='A'; FY:=1; { First field in upper left corner }end;procedure Clear;beginLowVideo;GotoXY(1,24); ClrEol;Write('Clear this worksheet? (Y/N) ');repeat Read(Kbd,Ch) until Upcase(Ch) in ['Y','N'];Write(Upcase(Ch));if UpCase(Ch)='Y' thenbeginClrScr;Init;Grid;end;end;