cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Moving right along and now comes the fun part -- formatting. Usually I would just use the built in editor features, but the string is concatenated to display Wd x Ht x Dp depending on a condition.

While it currently displays ok, I need to pad out each field with white spaces (and center) to align with my headers above.

Wd, Ht and Dp are currently defined as strings, is it possible to format and center using white spaces and calculating the length of each value?

global stringvar Width := totext({width},0,"")
global stringvar Height := totext({height},0,"")
global stringvar Depth := totext({depth},0,"")

Default Condition:

(Width) & ' X ' & (Height) & ' X ' & (Depth)

Gary

0 Likes
View Entire Topic
DellSC
Active Contributor
0 Likes

Is there a particular reason why you can't just make the text box a specific width and center its contents?

-Dell

Former Member
0 Likes

Because I have a flair for over complicating the simplest of things. I've made a text box and monkeyed with some manual spacing. While it's not perfect, it does align itself a little better. It will work for now but a proper solution will always be on my list. OCD does this to a person.

Gary

DellSC
Active Contributor
0 Likes

Or, as I say to my daughter, CDO, for those who are so bad it has to be in alphabetical order. 😄