ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

GetReturnCode

  • Resumen
  • Sintaxis
  • Muestra de código

Resumen

Return the message error code by index.

If the message for the specified index is a warning or informative message the function will return a 0; if the message is an error the function will return a value other than 0.

Sintaxis

GetReturnCode (index)
ParámetroExplicaciónTipo de datos
index

The specified position of the message in the returned list of messages, warnings, or errors.

Integer

Valor de retorno

Tipo de datosExplicación
Integer

The return code of the message at the specified index position.

Muestra de código

GetReturnCode example

Returns the severity code for the specified message.

import arcpy

arcpy.env.workspace = "c:/census/data.gdb"
arcpy.Erase_analysis("housing", "income", "low_income")

# Return the return code of the message in index
# position 3 (4th message)
print(arcpy.GetReturnCode(3))

Temas relacionados

  • AddError
  • AddIDMessage
  • AddMessage
  • AddReturnMessage
  • AddWarning
  • GetMessage
  • GetMessageCount
  • GetMessages
  • Escribir mensajes en las herramientas de secuencia de comandos
  • Comprender los tipos de mensajes y su severidad
  • Comprender mensajes en las herramientas de secuencia de comandos

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2021 Esri. | Privacidad | Legal