MV.INPUT Function  
Previous  Top  Next

Description  
 
This is a simple data entry routine allowing data to be entered at a specific position on the screen and validates against the type of data requested.  
 
Syntax  
 
MV.INPUT (Column, Row, Length, Type, Prompt, Help text, Input Field, SPEC)  
 
This routine uses NC90 above, therefore "hotkeys" are also checked and the relevant routines are executed.  
 
This passes data directly to the routine and does NOT use the common area:  
 
Variable
Description
Range/Comments
Column
Column Position of Prompt Field
0 to 999
Row
Line/row of Prompt Field
0 to 23
Length
Length of data to be entered
1 to 999
Type
Type of data to be entered
0 or 1

0 = Alphanumeric data


1 = Numeric data only

Prompt
Text to be displayed prior to entry
**
Help Text
Help text to assist operator during entry
**
Input Field
The value to default the field entry to. The contents will automatically be displayed prior to entry. The entered data is also returned in this field.

SPEC
Returns zero for normal entry or 1 for control key pressed.

 
 
document Remarks  
 
This routine is different to NC90:  
 
MV.INPUT displays the text of the field (prompt); NC90 is purely for data input.  
 
do-it The data entered in MV.INPUT can only be alphanumeric or numeric whereas NC90 caters for date and time, text and protected input.  
 
do-it The variable SPEC contains 0 (zero) for a normal entry or 1 (one) if ESCAPE or any other Function key or Control key is pressed.  
 
do-it The number that correspond to the key value will be returned in the common area called "Misc (18)" i.e. the 18  
 
 
** MSG can be any text or [nnn] where nnn is a line number within the record MESSAGE in the file _CONTROL that contains the text.