Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizbtns class
Message
From
08/01/2001 15:35:19
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00457739
Message ID:
00460783
Views:
10
>I need to modify this so that when a person clicks 'ADD', it populates a field with the current recno(). But I can't modify this class. I tried copying the
class but I still can't tinker with it. I'd like to know how the 'REVERT' button shows up when the 'ADD" is clicked. Thank you.

>However don't undertake my original reply. It's dangerous to store recno() in a buffered table. Till table is updated you have a teporary recno() for new
records (with negative value). They always start from -1 and in each append session. This means if you were updating (save updates) per record you'd
be saving always -1 to the field.

Tim, as for "adding" a new record populated with current record, I put in code SCATTER MEMVAR in cmdAdd.Click before DoDefault() and then fill in the txt[Field].values with the saved memory variables (m.field) values. Hope I make sense.
Thanks!
~d
J
Previous
Reply
Map
View

Click here to load this message in the networking platform