Focal Point
[SOLVED] line breaks in code

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1447083116

October 20, 2011, 11:48 AM
Nathan
[SOLVED] line breaks in code
is there a way to break a line into multple lines of code so it can be easily read?
ex)
-SET &TEST = IF &BLAH EQ 1 THEN 0
ELSE IF &BLAH EQ 2 THEN 1
etc...

Thanks!

This message has been edited. Last edited by: Kerry,


7.7, Windows
all output
October 20, 2011, 01:06 PM
njsden
Sure. In Dialogue Manager, just make sure to prefix each continuation line with a dash at the very beginning.

-SET &TEST = IF &BLAH EQ 1 THEN 0 ELSE
-            IF &BLAH EQ 2 THEN 1 ELSE
-            ... ELSE 99;




Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
October 20, 2011, 01:30 PM
Nathan
great thanks!


7.7, Windows
all output
October 20, 2011, 01:47 PM
Doug
Just keep in mind that all DM commands start with a dash, as demoed by njsden. The dash is used as a continuation character from the previous line.
October 20, 2011, 04:58 PM
Waz
Also keep a copy of the documentation near by, it will help.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!