Language Reference Guide : C. Generated User Classes : Edit_Object User Class : Setup Method
 
Share this page                  
Setup Method
The Setup method initializes the edit object, creating a new document or optionally opening a file.
This method has the following syntax:
integer = Edit_Object.Setup(editframe = FrameExec,
          editfield = EntryField[, editfile = varchar(257)]
          [, titlebar = integer][, titletext = varchar(80)])
This method has the following parameters:
editframe
Specifies the name of the frame to be edited
editfield
Specifies the entry field to be edited
editfile
Specifies the name of the file to be opened for editing. If this parameter is not provided, a new text document is created.
titlebar
Specifies a Boolean value (TRUE or FALSE) indicating whether the frame's title bar should be updated to reflect the current file name.
Default: FALSE if parameter is omitted
titletext
Specifies the base window title, and if omitted, the default is “TextEditor”. If titlebar is FALSE, this parameter is ignored.