Entering a number in a field with an existing number.

Bob @ MidCity Office bob at midcityoffice.com
Fri Oct 26 11:37:38 PDT 2007


Hi
 
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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20071026/549952bf/attachment.html 


More information about the Filepro-list mailing list