Hi,
I am converting some DOS Modula-2 programmes and libraries to FPC Paccal, I have only just started this and have run in a problem with a Library procedure that makes a Frame on the screen. It uses pre-defined strings of characters for the Frame, of a Type "FrameType".
So firstly a FrameType is declared,
Then the variables of FrameType are declared,
Then the variables are allocated the characters.
A programme Imports ( uses ) the FrameType and a suitable FrameType variable.
which are then used by any procedures that write the Frame to the screen.
[ NOT TRUE CODE ]
TYPE
FrameType = ARRAY [ 0..8 ] OF CHAR; (* originally defined in the Def Module *)
Then the various Frames are declared as a FrameType (* Also defined in the Def Module *)
VAR DoubleFrame, SingleFrame : FrameType;
(* This was in the Implementation Module Main Code. *)
Then the variables are allocated the characters. (* Originally as CHR(201) + CHR(205) etc etc *)
DoubleFrm : #201 + #205 + #187 + #200 + #205 + #188 + #186 + #186 ;
SingleFrm : #218 + #196 + #191 + #192 + #196 + #217 + #179 + #179 ;
[ / NOT TRUE CODE ]
However I have failed to find Information as to how I can implement this in FPC and the Save/Compile sequence is hammering my ssd. Any help as best practice to achieve this in Pascal will be most welcome.
Dave P..