Entering a number in a field with an existing number.

Bob @ MidCity Office bob at midcityoffice.com
Fri Oct 26 12:29:56 PDT 2007


 

-----Original Message-----
From: filepro-list-bounces+bob=midcityoffice.com at lists.celestial.com
[mailto:filepro-list-bounces+bob=midcityoffice.com at lists.celestial.com] On
Behalf Of Bruce Easton
Sent: Friday, October 26, 2007 2:52 PM
To: filepro list
Subject: RE: Entering a number in a field with an existing number.

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).

5.0

Also, you are saying "The value that was in the field can not be seen
because the input request is covering it."

Yes

Would it be desirable for you to see the original number when an update is
being made to it?

Yes

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?

I'm in Add Records mode but I'm using a standing file ( I quess that's what
you call it ), the processing calls in data, In this case, List Price and
then I want to be able to make a change if necessary.

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)?

I'd just like the existing numbers to be visible when I enter the field.

Please reply in plain text mode.  Thanks.

Bruce

Bruce Easton
STN, Inc.

_______________________________________________
Filepro-list mailing list
Filepro-list at lists.celestial.com
http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list