home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
vrac
/
homonlib.zip
/
BORDERLI.BAS
< prev
next >
Wrap
BASIC Source File
|
1995-04-13
|
1KB
|
42 lines
DEFINT A-Z
' $INCLUDE: 'PARM.INC'
DECLARE SUB BorderLines (parm())
SUB BorderLines (parm())
'****************************************************************************
'Primarily called from other library functions, the BorderLines() SUB draws
' lines on the top and bottom of a pick screen, advising the user of the
' availability of (or lack of) more items that are not currently shown on the
' screen.
'
' parm(1) = row of top line
' parm(2) = row of bottom line
' parm(3) = top element
' parm(4) = bottom element
' parm(5) = min element
' parm(6) = max element
'
'See functions PickOne$() and PickSome$() for examples of use.
'
'****************************************************************************
'Calculate if there's more stuff
IF parm(3) > parm(5) THEN up = 1
IF parm(4) < parm(6) THEN down = 1
IF up = 1 THEN more$ = CHR$(24) ELSE more$ = "-"
more$ = more$ + "More"
IF down = 1 THEN more$ = more$ + CHR$(25) ELSE more$ = more$ + "-"
IF up = 0 AND down = 0 THEN more$ = "Bottom"
COLOR parm(FGH) 'Draw the lines
LOCATE parm(1), 1
PRINT STRING$(80, 196)
LOCATE parm(2), 1
PRINT STRING$(70, 196); "-"; more$; STRING$(3, 196);
COLOR parm(FGN)
END SUB