[Stackoverflow] [Progress OpenEdge ABL] What is the equivalent of Java's 'readLine()' in Progress ABL?

Status
Not open for further replies.
W

W0lfw00ds

Guest
In Java you can read user input from the console with the following code:

Code:
String str = System.console().readLine("Enter value: ");

Is there a way to implement the same functionality in Progress ABL?

I tested the following:

test.p:

Code:
DEF VAR cInput AS CHAR NO-UNDO.

MESSAGE "Enter value: " UPDATE cInput.

I ended up with following results in Windows:

Code:
C:\opt\prgs\dlc117\bin\prowin -p test.p
Asks value from GUI with little box successfully.

C:\opt\prgs\dlc117\bin\prowin -b -p test.p
Fails in GUI error: "Attempt to write with no current output destination".

C:\opt\prgs\dlc117\bin\_progres -b -p test.p
Fails in CLI error: "** Attempt to read with no current source of input. (513)".

C:\opt\prgs\dlc117\bin\_progres -p test.p
Opens empty Progress character client and doesn't do anything.

Continue reading...
 
Status
Not open for further replies.
Back
Top