AuthenticRange.DeleteRow

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  プログラマーのレファレンス > Application API > Interfaces > AuthenticRange >

AuthenticRange.DeleteRow

See also

 

Method: DeleteRow() as Boolean

 

Description

If the beginning of the range is inside a dynamic table, this method deletes the selected row. The selection of the range gets modified to point to the next element after the deleted row. The function returns true, if the delete 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

' Delete selected row from dynamically growing table

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

Dim objRange

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

Set objRange = Application.ActiveDocument.AuthenticView.Selection

 

' check if we are in a table

If objRange.IsInDynamicTable Then

 objRange.DeleteRow

End If


(C) 2018 Altova GmbH