For Programmers: Free Programming Magazines  


Home > Archive > Cobol > January 2005 > What's wrong with this DISPLAY command ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author What's wrong with this DISPLAY command ?
ngaro@msn.com

2005-01-23, 8:55 pm

My compiler won't compile this statement:
DISPLAY wortel(getal) WITH FOREGROUND-COLOR 4 NO ADVANCING
It tells me NO ADVANCING is incorrect, if i type it like this
DISPLAY wortel(getal) NO ADVANCING WITH FOREGROUND-COLOR 4
then it thinks WITH FOREGROUND-COLOR 1 is incorrect.

How should i type it ? (I want to display "wortel(getal)" in color 4
without going to the next rule)

Frederico Fonseca

2005-01-23, 8:55 pm

On 23 Jan 2005 08:48:27 -0800, ngaro@msn.com wrote:

>My compiler won't compile this statement:
>DISPLAY wortel(getal) WITH FOREGROUND-COLOR 4 NO ADVANCING
>It tells me NO ADVANCING is incorrect, if i type it like this
>DISPLAY wortel(getal) NO ADVANCING WITH FOREGROUND-COLOR 4
>then it thinks WITH FOREGROUND-COLOR 1 is incorrect.
>
>How should i type it ? (I want to display "wortel(getal)" in color 4
>without going to the next rule)


That is correct in only one particular compiler.

What compiler are you using? Vendor and version please.




Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
ngaro@msn.com

2005-01-23, 8:55 pm

CA-Realia II Workbench

Richard

2005-01-23, 8:55 pm

> DISPLAY wortel(getal) WITH FOREGROUND-COLOR 4 NO ADVANCING

I would assume that 'FOREGROUND-COLOR' is usable when you are
DISPLAYing UPON CRT, or using SCREEN-SECTION, while 'NO ADVANCING' is
only available when DISPLAYing UPON CONSOLE. Thus these two cannot be
in the same statement.

You either need to use CONSOLE and forget colours, or use CRT and do
DISPLY AT nnnn (or whatever positioning you compiler allows).

Frederico Fonseca

2005-01-23, 8:55 pm

On 23 Jan 2005 10:24:16 -0800, "Richard" <riplin@Azonic.co.nz> wrote:

>
>I would assume that 'FOREGROUND-COLOR' is usable when you are
>DISPLAYing UPON CRT, or using SCREEN-SECTION, while 'NO ADVANCING' is
>only available when DISPLAYing UPON CONSOLE. Thus these two cannot be
>in the same statement.
>
>You either need to use CONSOLE and forget colours, or use CRT and do
>DISPLY AT nnnn (or whatever positioning you compiler allows).


The following
DISPLAY "ABC" at 0110
with foreground-color 4 no advancing.
or
DISPLAY "ABC" line 1 COLUMN 1
with foreground-color 4 no advancing.

Are perfectly valid with Acucobol.

No screen section involved.


But it may not be valid on CA-Realia.




Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
ngaro@msn.com

2005-01-24, 8:55 am

I found it, if you use FOREGROUND-COLOR in your DISPLAY statement it
automaticly doesn't advance, you don't have to type NO ADVANCING

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com