January 10, 2007, 12:19 PM
Francis MarianiWhen zero equals blank
-SET &ECHO=ALL;
-SET &A1 = '0';
-SET &A2 = '';
-SET &A3 = IF &A1 EQ &A2 THEN 'APPLE' ELSE 'ORANGE';
-SET &A4 = IF &A1 EQ '' THEN 'APPLE' ELSE 'ORANGE';
-SET &A5 = IF '&A1.EVAL' EQ &A2 THEN 'APPLE' ELSE 'ORANGE';
-SET &A6 = IF '&A1.EVAL' EQ '' THEN 'APPLE' ELSE 'ORANGE';
-TYPE &A3
-TYPE &A4
-TYPE &A5
-TYPE &A6
I was expecting four ORANGEs. It appears that zero equals blank in Dialog Manager, even if I put the 0 in quotes.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 10, 2007, 12:21 PM
margo430Please use ASIS and that will solve your problem.
Margaret
January 10, 2007, 01:23 PM
Francis MarianiMargaret, thank you very much! I had completely forgotten about ASIS.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 10, 2007, 02:06 PM
PrarieHmmmm. Learn something new everyday...had to look that one up.