Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Foxpro equivalent of Ditto!
Message
From
04/01/2001 08:21:40
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00459224
Message ID:
00459278
Views:
25
Hi Mike

You don't mention if you are accessing the data through a form or not.
If you are then you can do the following.

Set keypreview to .t.

Write code for the keypress event that traps for a function key.
this code should store the current value of the control to a variable and then move you onto the next field in your tab sequence.At this point it writes to the field.

Another way that gives more flexibilty would be to use 2 function keys.
And write code that provides similar functinality to Cut and Paste (which you could also use) but would be less cumbersome for large amounts of data.

first key writes contents to variable.
second key writes variable to the current field.

Hope this helps



>I have a database that has a lot of repetitive data in fields, though nothing that could be set as a default. I am thinking about adding some features to enhance data entry. Is there anyway to have a keystroke that repeats the value from the last record's field value?
Previous
Reply
Map
View

Click here to load this message in the networking platform