Consultor Eletrônico



Kbase P51978: How to set the cursor to a new line on the 'ENTRY' of an edi
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/11/2003
Status: Unverified

GOAL:

How to set the cursor to a new line on the 'ENTRY' of an editor widget?

FACT(s) (Environment):

Windows

FACT(s) (Environment):

Progress 9.x

FIX:

The following code will position the text cursor on the beginning of a new line after the last line of the current EDITOR widget:

ON ENTRY OF EditorName IN FRAME FrameName
DO:
SELF:SCREEN-VALUE = SELF:SCREEN-VALUE + CHR(10).
SELF:CURSOR-LINE = SELF:NUM-LINES.
END.