Xbasic
OBJECT.DUPLICATE_RECORD Function
Syntax
.Duplicate_record([n flag ])
Arguments
- flag
Optional. Default = 1.
- 1 = Alpha Anywhere displays a confirmation dialog after the new record is created.
- 2 = Alpha Anywhere does not display a confirmation dialog.
Description
Duplicates the current record.
Discussion
The <OBJECT>.DUPLICATE_RECORD() method applies to:
- Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
- Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
The <OBJECT>.DUPLICATE_RECORD() method creates a new record that is a duplicate of the current record and then moves focus to the new record. The method returns the number of the new record.
Example
This script which is attached to a button on a form duplicates the current record:
topparent.duplicate_record()
Limitations
Desktop applications only.
See Also