AuthenticRange.SelectPrevious
Método: GotoPrevious (eKind as SPYAuthenticElementKind) as AuthenticRange
Descripción
Selecciona el elemento de tipo eKind situado antes del inicio actual del intervalo. El método devuelve el objeto de intervalo modificado.
Errores
2001 | El objeto de intervalo o su objeto relacionado ya no es válido. | |
2004 | El destino está antes del principio del documento. | |
2005 | El tipo de elemento indicado no es válido. La dirección indicada para el parámetro de devolución no es válida. |
Ejemplos
' --------------------------------------------
' VBScript
' Explorar todo el documento etiqueta por etiqueta
' --------------------------------------------
Dim objAuthenticView
Set objAuthenticView = objPlugin.AuthenticView
Dim objRange
Set objRange = objAuthenticView.DocumentEnd
Dim bEndOfDocument
bBeginOfDocument = False
On Error Resume Next
While Not bBeginOfDocument
objRange.SelectPrevious(spyAuthenticTag).Select
If ((Err.number - vbObjecterror) = 2004) Then
bBeginOfDocument = True
Err.Clear
ElseIf (Err.number <> 0) Then
Err.Raise ' error de reenvío
End If
Wend