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
Request clarification before answering.
Is there a particular reason why you can't just make the text box a specific width and center its contents?
-Dell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.