Page 1 of 1

Centering FMT(Y) for use with input.

Posted: Tue Feb 02, 2010 10:41 am
by GomezL
00010 INPUT FIELDS "6,4,2/FMT(Y),[d]SaT": VALUD$

"FMT(Y)" is a bit too narrow for some fonts, causing the values to be "Chopped Off" for some monitors.

By using 2/FMT(Y), there is plenty of room, but I would really like to center the value.

Is there a way to accomplish this?

Posted: Tue Feb 02, 2010 10:58 am
by Gabriel
Also, could we have the same thing with centering of the new numeric field spec DATE for listviews?

Posted: Tue Feb 02, 2010 11:16 am
by gordon
If you are using proportional fonts, maybe it would work to use FMT(BY) where the B occupies half of a proportional font position.

Posted: Tue Feb 02, 2010 11:31 am
by GomezL
I was really excited about "BY" untill the "B" actually appeared on the Input!.


Seems "B" isn't available.

Posted: Tue Feb 02, 2010 12:14 pm
by gordon
I think I was confusing FMT with PIC.

Unfortunately FMT is not described on the wiki. I don't know how that came about. However, it is a part of the Advanced Capabilities Manual.

It turns out that any character other than the specific FMT control characters is regarded as an insertion character. This includes blank spaces. So FMT( G) produces the desired results.

That is a blank ahead of the entry character (e.g. G) is skipped during data entry and positions the proportional entry character in the center of a two position field.