home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug061.arc
/
MEMTIP.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
3KB
|
86 lines
dBase II Screen and Print Formatting
Programming Tip
by David A. Basskin,
Toronto, Ontario
INTRODUCTION
Iµá you'vσ go⌠ aε OSBORN┼ ▒ anΣ aε EPSO╬ MX-80¼ ì
yo⌡á ma∙ finΣ thesσ tw∩ file≤ oµá somσá use«á Rathe≥ ì
thaεá goinτá t∩ thσ troublσ oµá typinτá ou⌠á contro∞ ì
code≤á t∩á forma⌠ thσ screeε witΦ underlineΣá and/o≥ ì
half-intensit∙á character≤á ever∙ timσ yo⌡ se⌠ u≡á ß ì
screeεá o≥ pagσ forma⌠ file¼á yo⌡ caε usσ thσá macr∩ ì
substitutioεá functioεá oµ dBasσ t∩ takσá ove≥á thi≤ ì
tiresomσ job«á M∙ suggestioε i≤ t∩ kee≡ theφ oεá thσ ì
samσ disδ a≤ DBASE.CO═ anΣ RESTOR┼ theφ t∩ memor∙ a⌠ ì
your convenience.
SCREEN.MEM
Jus⌠ RESTOR┼ thi≤ filσ oµ memor∙ variable≤á anΣ ì
usσá thσá followinτ command≤ iε you≥á screeεá forma⌠ ì
files:
&BL - begins underlining
&EL - ends underlining
&BH - begins half-intensity
&EH - ends half-intensity
notσá tha⌠á thσ underlininτ functioε underline≤á thσ ì
wholσá fielΣá t∩ whicΦ i⌠ applies¼á whethe≥á o≥á no⌠ ì
filled. To underline one field, you could type:
. DISPLAY &BL,FIELD1,&EL,FIELD2 ...
and so on.
PRINT.MEM
Thi≤á filσá i≤ useΣ iε thσ samσ wa∙ a≤á SCREEN« ì
Therσá i≤ n∩ neeΣ t∩ releasσ al∞ thσ variable≤á froφ ì
thσá former╗á SCREE╬á anΣ PRIN╘ sharσá n∩á variable≤ ì
name≤ anΣ s∩ botΦ caε bσ useΣ together« Thσ command≤ ì
will change the setup of an Epson MX-80 as follows:
&BC - begin compressed print
&EC - end compressed print
&BD - begin double-strike
&ED - end double-strike
&BE - begin emphasized print
&EE - end emphasized print
&BI - begin italic print
&EI - end italic print
&BL - begin underliningè &EL - end underlining
&BS - begin superscript
&ES - end superscript
&BW - begin double width
&EW - end double width
&RESET - clear all settings to power-on
defaults and move paper to top of form.
Notσá tha⌠ thesσ code≤ won'⌠ worδ iε .FR═ file≤ ì
generateΣá b∙ REPORT╗á the∙ mus⌠ appea≥ iεá .FM╘á o≥ ì
.CMD files.
MODIFICATIONS
Iµá you'rσ usinτ ß differen⌠ printer¼á o≥ dBasσ ì
oε ß differen⌠ computer¼á thσ principlσ behinΣá thi≤ ì
programminτá ti≡á caεá bσ easil∙á adapted«á Iµá you≥ ì
termina∞ support≤ reversσ vide∩ o≥ ß blinkinτ curso≥ ì
(whicΦá thσá Osbornσ doe≤ not)¼á thosσá code≤á coulΣ ì
easil∙ bσ addeΣ t∩ SCREEN« Similarly¼ ß proportiona∞ ì
spacing toggle could be added to PRINT.
Send any questions or comments to:
David A. Basskin
5 Douville Ct.,
Toronto, Ont.,
M5A 4E7
Phone: 368-1085
====================================================