Code Comments
Programming Forum and web based access to our favorite programming groups.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)
Post Follow-up to this messageOn 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
Post Follow-up to this message> 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).
Post Follow-up to this messageOn 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
Post Follow-up to this messageI found it, if you use FOREGROUND-COLOR in your DISPLAY statement it automaticly doesn't advance, you don't have to type NO ADVANCING
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.