Entering a number in a field with an existing number.

Bruce Easton bruce at stn.com
Fri Oct 26 11:52:01 PDT 2007


Bob Simcoe wrote Friday, October 26, 2007 2:38 PM:
>
> I 'm working on an instance where you may want to change a number
> in a field
> that already has a number in it.
> Currently, I save the value of the existing field as a variable,
> and use an
> INPUT function, positioning the cursor at the first position of the real
> field prompting for the new value. The value that was in the field can not
> be seen because the input request is covering it. If the user enters some
> input I
> assign it to the real field and use use PUSHKEY "[ENTR]". If the user
> doesn't enter any input, the field is filled with the saved
> previous value,
> and then the pushkey.
>
> This works fine, however, I would like to trap each number until the user
> presses ENTER on top of the existing, or ahead if the right
> justified number
> didn't completely fill the field, without using an INPUT
> function. ex: If I
> entered 223 in a 6 character right justified field that already had 123, I
> would like the results to be 223 and not 223123.
>
> Is there a generally accepted way to do this?
>
> I'm using fp5.0, native windows.
> I'm on a standing file in add records mode.
>
> Any help would be greatly appreciated
>
> Thank you
> Bob Simcoe
>

Bob - there are probably several ways to do what might be acceptable
for this.  For starters - what filepro version are you running for this
(so we know what options are available).

Also, you are saying "The value that was in the field can not
be seen because the input request is covering it."
Would it be desirable for you to see the original number when
an update is being made to it?

Also, you say you are in add-records mode.
Shouldn't your field already be blank (and not have a value in it)
if you are in add-records mode?  Should this functionality apply
to update mode as well?  Or are you *only*  concerned about the
case where someone has entered a number in the field and then
(while still in add-mode) returns back to the field to change it?

Also, exactly what type of behavior are you after?  For instance,
would you like the numbers to push out from the right as you type
them (for a right-justified number)?

Please reply in plain text mode.  Thanks.

Bruce

Bruce Easton
STN, Inc.



More information about the Filepro-list mailing list