home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
asm_sour
/
readchar.doc
< prev
next >
Wrap
Text File
|
1984-08-11
|
901b
|
22 lines
READCHAR:
This procedure is similar to KEYBOARD. However, this procedure
will display the character received from the keyboard to the
current display device. It requires three parms.
1. The string variable to receive the string of characters.
2. The variable type integer to receive the total count of
characters typed.
3. The number of characters to stop reading at. In this way
you can limit the field with of the read. Nice for
formatted input screens. It is a positive integer. It
should not exceed the declaration of the string otherwise it
will continue to read past the end of the string into
adjacent memory space. There is no error checking.
Pascal declarations:
Procedure keyboard (VAR stringname : stringtype;
VAR length : integer;
CONST width : integer); external;