Left Justify number in the default value of a input popup
Kenneth Brody
kenbrody at spamcop.net
Fri Jul 25 09:20:20 PDT 2014
On 7/25/2014 11:27 AM, James Flanagan wrote:
> ::qy(2,.0):
> ::qt(2,LJ):
> ::nq(2,LJ):
> ::qy=“1”:
> ::qt=qy:
> ::msgbox qt:
> chg_qty::input popup nq "Enter the new quantity^A " default qt:
>
>
> I am trying to left justify a number in the default value of an input
> popup, but nothing I have tried has been successful. in the above code,
> when qt is shown in the msgbox, it is left justified. however, in the
> input popup, it is right justified.
I am assuming the above is a stripped down version of the "real" code?
The above code works as expected for me -- the default value is left justified:
┌─────────────────────────────┐
│ Enter the new quantity: 1 ◄ │
└─────────────────────────────┘
Of course, you can eliminate the unnecessary "qt" field with:
input popup nq "Enter the new quantity: " default (""{qy)
Or:
ng = qy ; input popup ng "Enter the new quantity: " default
> My motivation for this is because we have already had an instance where a
> user when trying to change the qty 1 to qty 2, accidentally changed the
> qty to 21. it is my assumption that this would be best avoided by having
> the first number you type overwrite the existing default value. Thank
> you very much in advance
--
Kenneth Brody
More information about the Filepro-list
mailing list