Left Justify number in the default value of a input popup
James Flanagan
James at Flantec.com
Fri Jul 25 11:06:46 PDT 2014
Ken,
Your suggested code:
input popup nq "Enter the new quantity: " default (""{qy)”
was just what i was looking for. Thank you all very much,
James Flanagan
Flantec.com
email: James at Flantec.com
mobile: 760-458-8498
home: 219-221-6219
text: 7604588498 at txt.att.net
aim: Flantec
oovoo: Flantec
Skype: Flantec
ichat: Flantec at mac.com
home: 1901 Cidermill Road
Michigan City, IN 46360
On Jul 25, 2014, at 12:20 PM, Kenneth Brody <kenbrody at spamcop.net> wrote:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20140725/1f8ec8af/attachment.html
More information about the Filepro-list
mailing list