TABLE FILE MYFILE PRINT TEST VALUE1 VALUE2 ON TABLE PCHOLD FORMAT PDF END
As soon as this prints, the value will retain it's original length for VALUE1 and will print something like "VALUE1 , VALUE2" instead of just "VALUE1, VALUE2".
August 31, 2006, 06:40 PM
Francis Mariani
I used the CAR file to test this out and it seems to work as expected:
DEFINE FILE CAR
TEST/A100 = CAR || ', ' || MODEL;
END
TABLE FILE CAR
PRINT
TEST
CAR
MODEL
ON TABLE PCHOLD FORMAT PDF
END
You should be able to run this in your enviroment - we FocalPointers (almost) always use the CAR file for examples - anyone can run them on any environment.
I'm not sure what you mean by
quote:
will print something like "VALUE1 , VALUE2" instead of just "VALUE1, VALUE2"
both those statements look the same, except for the blank after VALUE1.
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
September 01, 2006, 10:12 AM
gregson06
Francis,
Basically here's the scenario. Let's say that the field CAR is of type A40 but only the first three characters have something, like 'Z40' and then MODEL is something like 'S-TYPE' but that one is also about A40, when I force concatenate them into a field of size A82 (for the sake of adding a comma and a space in between the two), the PDF somehow ignores the space removal and converts it back to the field's full length. So instead of 'Z40, S-TYPE' I get 'Z40~~~~~~~~~~~~~~~~~~~~~~~~, S-TYPE~~~~~~~...' (the tildens being spaces in this example) Is this happening on your end? I'm running WebFOCUS 5.3This message has been edited. Last edited by: gregson06,
September 01, 2006, 10:26 AM
Tony A
Are you sure that they are actually spaces and not just some unprintable character?
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
September 01, 2006, 10:34 AM
gregson06
Tony,
Yes, basically on PDF it just jumps back to being full length. I thought it was the program too but when I ran it on basic HTML it works just fine, except when I convert it to PDF... is there a way maybe to cast it into a string that doesn't allow movement? I'm not sure if that makes sense but it's almost like the PDF format detects that it's not one field but two and splits it.