[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Funny things happen with DISPLAY and ACCEPT.
From: |
John Culleton |
Subject: |
Re: [open-cobol-list] Funny things happen with DISPLAY and ACCEPT. |
Date: |
Sat, 17 Apr 2010 11:51:08 -0400 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29.6-smp; KDE/4.2.4; i686; ; ) |
On Saturday 17 April 2010 09:05:28 Vince Coen wrote:
> 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?
>
>
> ------------------------------------------------------------------------
>------ Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
It is part of my template, which I use to save typing and errors. I think I
will comment it out.
--
John Culleton
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.booklocker.com/books/4055.html
http://www.scribd.com/doc/24676863/