|
From: | Michael |
Subject: | Re: [open-cobol-list] accept a keystroke? |
Date: | Tue, 05 Jan 2010 11:30:23 -0600 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
I'm not sure how to do this in OpenCobol, without some intrinsic function, but.... Have you looked into opening the stdin file and using read/write statements? In the past I've found this to work better, because I'd write the applications to accept anything, and then write my own editing of whatever was entered, returning the appropriate error messages and so on. Gives me more control of how the user interacts with the application.
Michael Anderson. Guillaume Yziquel wrote:
Hello.I'm quite new to Cobol, and I have a simple cobol question about the ACCEPT command.I've been reading documentation at http://www.csis.ul.ie/COBOL/Course/COBOLcommands.htmand I'd like to use the ACCEPT command to capture a keystroke, and not a string + \n statement. Only the keystroke, no return.How do I do that with ACCEPT? More generally, what do you cobol guys do when you need documentation? Where do you find it?All the best,
[Prev in Thread] | Current Thread | [Next in Thread] |