gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Funny things happen with DISPLAY and ACCEPT.


From: Vince Coen
Subject: Re: [open-cobol-list] Funny things happen with DISPLAY and ACCEPT.
Date: Sat, 17 Apr 2010 14:05:28 +0100
User-agent: KMail/1.12.4 (Linux/2.6.31.12-desktop-3mnb; KDE/4.3.5; i686; ; )

On Friday 16 Apr 2010, John Culleton wrote:
> When I call my latest toy program from the command line, either from a
> regular session or a terminal type window on my GUI,  something funny
> happens. I want to display a mesage and then receive some typed in data in
> return. Simple, no? Well, not so simple.
> Here is the code fragment:
> -----------------------
>      DISPLAY "Record Key".
>      ACCEPT  rec-key.
> -------------------------------
> What happens is that the ACCEPT line opens up a new window, thus obscuring
> the displayed message.
> I have a SCREEN SECTION but there is nothing in it. It is just a
> placeholder.
> 
> If I delete the SCREEN SECTION header the program starts to operate
> normally.
> 
> IMO an empty section should not affect the way the progam performs. But it
> does.
> 
Sounds totally reasonable to me.  

Why have a screen section if you have nothing to put in it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]