MV.DISP Function  
Previous  Top  Next

Description  
 
This routine is used to display an error or general message in various formats and positions on the screen.  

Syntax  
 
MV.DISP (Style, Message)  
 
This passes data directly to the routine and does NOT use the common area:  

Variable
Description
Range/Comments
Style
Style to use when displaying the message
0 to 999
Message
The message to be displayed.
**
 

document Remarks  
 
The variable Style can be:  

Style No.
Description
1
Displays the field MESSAGE as a header after clearing the screen.
2
Displays "System Now " followed by the MESSAGE content. *
3
Message displayed centrally on the error line.
4
Message centralised vertically and horizontally and placed in a dialog box, showing options and allowing selection of option to be returned in COMMON variable "Param".
5
Not used
6
Not used
7
Message displayed centrally on the error line.
8
Clears lines 18 to 23 and displays the message on line 18.
9
Message displayed centrally on the prompt line.
 

Style 4 passes the option selection in the variable "Param".  

** MESSAGE can be:  
 
·Any text providing it contains at least one space.  
·Any DIALOG id to a record in the file _DIALOG providing it is alphanumeric with no spaces and no commas.  
·Any file name followed by a comma followed by a record id, providing there are no spaces in the MESSAGE data.  
·Data in the format [nnn] where nnn can be:  

·Any number, which will be the line number within the record MESSAGE in the file _CONTROL that contains the text.  
·Any number prefixed with "U", which will be the line number within the record MESSAGE in _CONTROL that contains the text.  
·Any number prefixed with "D", which will be the line number within the record MVMESSAGE in _CONTROL that contains the text.  
·Any number prefixed with "M", which will be the line number within the record MVDIALOG in _CONTROL that contains the text.