Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

What's wrong with this DISPLAY command ?
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)


Report this thread to moderator Post Follow-up to this message
Old Post
ngaro@msn.com
01-24-05 01:55 AM


Re: What's wrong with this DISPLAY command ?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Frederico Fonseca
01-24-05 01:55 AM


Re: What's wrong with this DISPLAY command ?
CA-Realia II Workbench


Report this thread to moderator Post Follow-up to this message
Old Post
ngaro@msn.com
01-24-05 01:55 AM


Re: What's wrong with this DISPLAY command ?
> 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).


Report this thread to moderator Post Follow-up to this message
Old Post
Richard
01-24-05 01:55 AM


Re: What's wrong with this DISPLAY command ?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Frederico Fonseca
01-24-05 01:55 AM


Re: What's wrong with this DISPLAY command ?
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


Report this thread to moderator Post Follow-up to this message
Old Post
ngaro@msn.com
01-24-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:21 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.