Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Foxpro equivalent of Ditto!
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00459224
Message ID:
00459351
Views:
19
>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?

If you're using forms, you can add a Clone button. Say, you user seats on the particular record and he/she wants to clone it: (I give you the code from my Clone button): (lblClone is a label, which shows: "This record is cloned" message, I make it back invisible in Save/Revert):
********************************************************************
*  Description.......: cmdClone.Click()
*  Calling Samples...: 
*  Parameter List....: 
*  Created by........: Nadya Nosonovsky 10/23/2000 11:50:18 AM - re-created
*  Modified by.......: 
********************************************************************
local loCloned
scatter name loCloned memo
append blank
loCloned.FunctionID=FunctionID && Auto-incremented
gather name loCloned memo
this.parent.lblCloned.visible=.t.
thisform.refresh()
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform