Altova Authentic 2024 Browser Edition

AuthenticRange.DuplicateRow

Home Prev Top Next

See also

 

Method: DuplicateRow () as Boolean

 

Description

If the beginning of the range is inside a dynamic table, this method inserts a duplicate of the current row after the selected one. The selection of the range gets modified to point to the beginning of the new row. The function returns true if the duplicate operation was successful, otherwise false.

 

Errors


2001

The authentic range object, or its related view object is no longer valid.


2005

Invalid address for the return parameter was specified.

 

Examples

' ---------------------------------------------------------

'                       VBScript

' dupplicate row in current dynamically growable table

' ---------------------------------------------------------

Dim objRange

Set objRange = objPlugin.ActiveDocument.AuthenticView.Selection

 

' check if we can insert soemthing

If objRange.IsInDynamicTable Then

 objRange.DuplicateRow

 ' objRange points to begining of new row

 objRange.Select

End If

 

© 2017-2023 Altova GmbH