Altova StyleVision 2024 Enterprise Edition

Method: AppendRow()as Boolean

 

Description

If the beginning of the range is inside a dynamic table, this method inserts a new row at the end of the selected table. The selection of the range is modified to point to the beginning of the new row. The function returns true if the append 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

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

' Scripting environment - VBScript

' Append row at end of current dynamically growable table

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

Dim objRange

' we assume that the active document is open in authentic view mode

Set objRange = Application.ActiveDocument.AuthenticView.Selection

 

' check if we can insert something

If objRange.IsInDynamicTable Then

 objRange.AppendRow

 ' objRange points to beginning of new row

 objRange.Select

End If

© 2017-2023 Altova GmbH