Consultor Eletrônico



Kbase P109181: Editor does not work in batch mode.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   22/09/2005
Status: Unverified

SYMPTOM(s):

Editor does not work in batch mode.

Running following code in batch mode fails. Running the same code in interactive mode works fine:
DEFINE VARIABLE EditorName AS CHARACTER NO-UNDO.
FORM
EditorName VIEW-AS EDITOR INNER-CHARS 30 INNER-LINES 10 WITH FRAME FrameName.
OUTPUT TO TestEditor.Out.
MESSAGE
IF NOT EditorName:READ-FILE("readfile.p") THEN
"FAILURE"
ELSE
"SUCCESS".
OUTPUT CLOSE.

CAUSE:

Widgets are not realized in batch mode, widget methods and attributes requiring the widget to be realized should not be used in batch mode This is true of all widgets, not just the editor.

FIX:

Do not use User Interface Widgets, their methods or their attributes when designing applications that will be run in batch mode.