MV.TEXT.EDITOR Statement  
Previous  Top  Next

Description  
 
This routine creates a box into which the operator can type as if in word processor mode, i.e. with word wrap on lines.  
 
Syntax  
 
MV.TEXT.EDITOR (Type, Filename, TextName, Spec)  
 
Pressing ENTER will accept the data entered, ESC will abort the entry and have no affect.  
 
This does not use the COMMON variables directly.  

Variable
Description
Range/Comments
Type
Type of editor required
See below
Filename
Name of file (if relevant)
Valid file name or null
TextName
Name of record (if relevant) or Variable containing the text to be edited

Spec
Returns "1" if ESCAPE pressed otherwise "0"

 

There are two types of editor available, determined by the value in Type:  
 
·"H" Coordinates of the box to be displayed is in line 1 of the text.     
·"F" Full screen editor.  
 
If there is a value in the variable Filename then the record defined in the variable TextName will be read (providing there are no spaces in the variable TextName) and the contents will be displayed. After the edit is completed, with an ENTER key press, the record will be updated with the new data.  
 
If an ESCAPE is pressed all editing is ignored and any record is NOT updated.  
 
If the editor is a type "H", the first attribute of any data - whether in a record or passed to the routine in TextName - must be coordinates of the box to be reserved on the screen for input.  
 
document Remarks  
 
OSMOSiS has two alternative facilities for achieving word processing style data entry:  
 
prcarrow Defining a field as a Type "TX" which, when put on the screen will automatically provide a word processing style entry.     
 
prcarrow NC90 has this facility built into it, using a TYP=9.