Print Data Command
Posted: Wed Jun 25, 2014 3:23 pm
The "Print Data" command is
I can load the Fontname and Fontsize through variables (which I load from an Ini file). But what about BOLD, ITALIC, UNDERLINE and STRIKEOUT ?
Is there a way to switch those ON - other than do...case or if... then - (as Marek does in moldruk.prg)? If you want to allow all these features, this is 16 different possibilities!
Wouldn't it be easier with something like
where aStyle could be an array of 4 logical flags?
Code: Select all
@ <Row> , <Col> PRINT [ DATA ] <xData>
[ TO <nToRow> , <nToCol> ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ BOLD ]
[ ITALIC ]
[ UNDERLINE ]
[ STRIKEOUT ]
[ COLOR <aColor> ]
[ RIGHT | CENTER ]
Is there a way to switch those ON - other than do...case or if... then - (as Marek does in moldruk.prg)? If you want to allow all these features, this is 16 different possibilities!
Wouldn't it be easier with something like
Code: Select all
<Row> , <Col> PRINT [ DATA ] <xData>
[ TO <nToRow> , <nToCol> ]
[ FONT <cFontName> ]
[ SIZE <nFontSize> ]
[ STYLE <aStyle>]
[ RIGHT | CENTER ]