home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
DATABASE
/
DBT123S.ZIP
/
DBTERASE.PRG
< prev
next >
Wrap
Text File
|
1989-09-21
|
2KB
|
56 lines
*------------------------------------------------------------------
* DBTERASE.PRG - ERASE demonstration
* (c) 1989 BERNATH COMPUTER
* 5:10:15 9/13/1989
*------------------------------------------------------------------
CALL DBTOOLS WITH "15,3" && store existing screen
CALL DBTOOLS WITH "7,0,15,2,0" && dithered background
CALL DBTOOLS WITH "3,1,5,8,43,14,1,1,0,1" && draw box
CALL DBTOOLS WITH "1,2,12,14,1,0,E R A S E - function 5" && title in box
SET COLOR TO W/B && display box text
@ 3,8 SAY "ERASE will blank the text on a"
@ 4,8 SAY "specified area of the screen with-"
@ 5,8 say "out disturbing the colors."
CALL DBTOOLS WITH "10,7,13,14,1" && pause
CALL DBTOOLS WITH "3,4,7,16,74,15,3,2,0,1" && overlay another box
SET COLOR TO +W/GB && display box text
@ 5,9 SAY "Syntax:"
mPARM="CALL DBTOOLS WITH "+CHR(34)+"5,ULR,ULC,LRR,LRC,<BG>"+CHR(34)
@ 6,9 SAY mPARM
SET COLOR TO B/GB
@ 8,11 SAY "ERASE will blank out text data in the area designated by"
@ 9,11 say "ULR, ULC, LRR, and LRC."
@ 11,11 say "The BG term is optional. If included, the characters will"
@ 12,11 say "be blanked to the background color specified by BG."
@ 13,11 say "If not included, the blanked characters will retain their"
@ 14,11 say "previous color attributes."
CALL DBTOOLS WITH "10,15,30,15,3"
SET COLOR TO W/N,N/W,,N
CLEAR
KOUNT = 2
DO WHILE KOUNT < 23
@ KOUNT,1 SAY " dBTools dBTools dBTools dBTools dBTools dBTools dBTools dBTools"
KOUNT = KOUNT + 1
ENDDO
KOUNT = 0
mPOS = 0
DO WHILE KOUNT < 8
mPOS = mPOS + 1
mCOL = 9*(mPOS-1)+1
mPARM = "13,2,"+STR(mCOL,2)+",22,"+STR(mCOL+8,2)+",15,"+STR(KOUNT,1)
CALL DBTOOLS WITH mPARM
KOUNT = KOUNT + 1
ENDDO
CALL DBTOOLS WITH "5,12,30,14,50,1"
CALL DBTOOLS WITH "5,7,0,7,79"
CALL DBTOOLS WITH "5,9,10,10,30"
CALL DBTOOLS WITH "3,16,15,21,63,15,0,0,0,1"
CALL DBTOOLS WITH "1,17,18,15,0,0,Note the full and partial row where text"
CALL DBTOOLS WITH "1,18,18,15,0,0,has been blanked but the colors remain"
CALL DBTOOLS WITH "1,19,18,15,0,0,intact. Also note the section where text"
CALL DBTOOLS WITH "1,20,18,15,0,0,has been blanked and the color set to blue."
CALL DBTOOLS WITH "10,21,25,7,0"
CALL DBTOOLS WITH "14,3,0"
RETURN