home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
windows
/
baswind8.zip
/
ROW25.SUB
< prev
next >
Wrap
Text File
|
1990-09-14
|
3KB
|
58 lines
'
'
'******************************************************************************
' Function : ROW25 *
' *
' Purpose: *
' *
' *
' Results: *
' *
' Usage : *
' *
' *
' Date Written : 09/01/90 - Date Tested: 09/01/90 - Author: James P Morgan *
' Date Modified: - : - : *
'-----------------------------------------------------------------------------*
' NOTE: *
'******************************************************************************
' *
' SUB PROGRAM NAME (PARAMETERS) STATIC/RECURSIVE *
'-----------------------------------------------------------------------------*
' *
SUB ROW25(MSG$,RETURN.CODE%) STATIC
DEFINT A-Z 'make all short integer by default
RETURN.CODE%=0
VIDEO.RETURN.CODE%=0
ROW%=25 'put them on line 25
COL%=1 'starting in column 1
ATTR%=&H19 'use high white on blue
DAT$=STRING$(80," ") 'initialize to spaces
CALL FASTPRT(DAT$,ROW%,COL%,ATTR%,VIDEO.RETURN.CODE%) 'direct memory i/o wont cause line feed
DAT$="" 'free string space used
IF MSG$="" THEN 'any message to display on row 25?
EXIT SUB 'no (in effect just force line 25 clear)
END IF
'
'split the message in half
'
LOCATE 25,((40-(LEN(MSG$)/2))-.5)-3
COLOR 31,1
PRINT CHR$(15);" ";
COLOR 15,1
PRINT MSG$;" ";
COLOR 31,1
PRINT CHR$(15);
COLOR 7,1
END SUB