Focal Point
[CLOSED] DOUBLE BLANK in AMPER VARIABLE

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

January 20, 2012, 10:43 AM
JACQUETL
[CLOSED] DOUBLE BLANK in AMPER VARIABLE
Hi,

I will test this code :

-SET &TEST = 'hello s'  worldd';
-TYPE '&TEST.EVAL'


webfocus, return error, but if i changed
-SET &TEST = 'hello s' worldd';
(one space)
by
-SET &TEST = 'hello s'worldd';
(no space)

it's ok.

Does anyone help me ?

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


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
January 20, 2012, 10:48 AM
Tom Flynn
-SET &TEST = 'hello s' | 'worldd';
-TYPE '&TEST.EVAL'



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 20, 2012, 10:57 AM
GamP
Or:
-SET &TEST = 'hello s''  worldd';
-TYPE &TEST



GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
January 22, 2012, 03:52 PM
Waz
FYI

Double single quotes evaluate to a single single quote.


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!

January 25, 2012, 05:56 AM
JACQUETL
well it's ok.

Thanks !


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
January 30, 2012, 06:49 PM
mpbMDE
quote:
-SET &TEST = 'hello s' worldd';
-TYPE '&TEST.EVAL'


You can add as many blanks as you like.

-SET &TEST = 'hello s' | ' ' | ' worldd';
-TYPE '&TEST.EVAL'
Results:
'hello s worldd'


WebFOCUS 8.1.05 Windows 7, all output