Kbase P27295: This code produces no results in the editor field.def var mv
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/2/2005 |
|
Status: Unverified
SYMPTOM(s):
This code produces no results in the editor field.
def var mv_ok as log.
def var mv_rpt as char init "/home/leoj3/trash1.txt".
DEFINE VARIABLE EDITOR-1 AS CHARACTER
VIEW-AS EDITOR SCROLLBAR-HORIZONTAL SCROLLBAR-VERTICAL LARGE
SIZE 50 BY 12 NO-UNDO.
def frame fr-x editor-1 .
Mv_ok = editor-1:read-file(mv_rpt).
disp _serial mv_ok skip editor-1 with side-labels.
CAUSE:
Code was not enabling widgets.
FIX:
Use the following code:
def var mv_ok as log.
def var mv_rpt as char init "/home/leoj3/trash1.txt".
DEFINE VARIABLE EDITOR-1 AS CHARACTER
VIEW-AS EDITOR SCROLLBAR-HORIZONTAL SCROLLBAR-VERTICAL LARGE
SIZE 50 BY 12 NO-UNDO.
def frame fr-x editor-1 .
Mv_ok = editor-1:read-file(mv_rpt).
disp _serial mv_ok skip editor-1 with side-labels.