home *** CD-ROM | disk | FTP | other *** search
- ' PROMPT.BAS
- ' This subprogram displays a prompt (P$) together with a
- ' previous response, if any (R$). IF the response length,
- ' nc% exceeds the length of the previous response (R$), then
- ' the difference is made up with trailing character sc%'s.
- ' The prompt starts in row r% and column c%. The starting
- ' location of the response is returned in r% and c%.
- ' Ptype is the attribute to be used for the prompt.
- ' Rtype is the attribute to be used for the response.
-
- SUB prompt(r%, c%, P$, R$, nc%, Ptype%, Rtype%, sc%) STATIC
-
- WHILE LEN(R$) < nc%
- R$ = R$ + CHR$(sc%)
- WEND
-
- CALL P(P$, r%, c%, Ptype%)
- c% = c% + LEN(P$) 'adjust the column to point to start of data
- IF c% > 80 THEN r% = r% + 1: c% = c% - 80
- CALL P(R$, r%, c%, Rtype%)
-
- END SUB
-