Focal Point
Right Justify Alpha format

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

April 30, 2008, 06:35 PM
jcs1226
Right Justify Alpha format
Hi everyone,

Is there an easy way to right justify an alpha field in a define? I know you can do this in the style settings but was hoping something like:

fieldname/A4R

would work. I also know I could change the A4 to an I4 to accomplish but I need the field to be an alpha format.

Thanks for any suggestions.


WebFocus 7.6.6 Win 2K
April 30, 2008, 06:54 PM
N.Selph
Can't you use the RJUST function?


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
May 01, 2008, 08:49 AM
Leah
RJUST would right justify the data in the field, but what format is your output to be in? That can affect how things are displayed no matter what you do.


Leah
May 01, 2008, 08:52 AM
Danny-SRL
You can use RJUST, but if you output in HTML or EXCEL it won't by right-justified. However in PDF, it will.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

May 01, 2008, 09:42 AM
jcs1226
The final output will be in .txt format. Seems like there would be an easy way to do this in the define but I have yet to find. Keep the suggestions coming! Thanks!


WebFocus 7.6.6 Win 2K
May 01, 2008, 09:46 AM
jcs1226
Forgot to mention...I'm trying the RJUST now and will let you all know if that works.


WebFocus 7.6.6 Win 2K