openField
const func file: openField (in file: in_fil, inout text: out_fil,
in integer: line, in integer: column, in integer: width, in string: defaultValue)
-
Open a fieldFile with the given parameters.
aFieldFile := openField(KEYBOARD, info, 3, 11, 3, " 10");
- Parameters:
- in_fil - Keyboard input file.
- out_fil - Text console/window file to place the field in.
- line - Line of the field in out_fil.
- column - Column of the field in 'out_fil''.
- width - Width of the field.
- defaultValue - Default value of the field.
- Returns:
- the fieldFile opened.
getwd
const func string: getwd (inout fieldFile: field_fil)
-
Read the content of the field field_fil.
Leading and trailing whitespace is removed from the result.
When the function is left field_fil.bufferChar contains one of
KEY_NL, KEY_TAB, KEY_BACKTAB, KEY_UP, KEY_DOWN and KEY_ESC.
- Returns:
- a word read without leading and trailing whitespace.
getln
const func string: getln (inout fieldFile: field_fil)
-
Read the content of the field field_fil.
Leading and trailing whitespace is retained in the result.
When the function is left field_fil.bufferChar contains one of
KEY_NL, KEY_TAB, KEY_BACKTAB, KEY_UP, KEY_DOWN and KEY_ESC.
- Returns:
- a line with possible leading and trailing whitespace.
write
const proc: write (inout fieldFile: field_fil, in string: stri)
-
Write stri to the content of the field field_fil.
The stri is filled with spaces or truncated to the field width.