AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones .Net
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the error for the last .Net procedure that failed.
Note This procedure was carried out by function DotNetRun or DotNetRunXML.
Ejemplo
// This example assumes that the eightball module is available from "www.gotdotnet.com".
// The example would no longer operate if this module was not available on the site
DotNet.Value[1]= "enter a question in English" + ...
	"for the fun of it: what can we expect in response?"
DotNet.Name[1] = "psQuestion"
DotNet.Type[1] = DotNetStringType
IF DotNetRun("www.gotdotnet.com/playground/services/EightBall/eightballws.asmx", ...
		"Ask", "http://tempuri.org/","http://tempuri.org/Ask") = True THEN
	Info(DotNetGetResult(DotNetResult))
ELSE
	IF DotNetError(DotNetErrMessage) ~= "" THEN
		Error(ErrorInfo()) 
	ELSE
		Error("DotNet error: " + DotNetError(DotNetErrMessage))
	END
END
Sintaxis
<Result> = DotNetError(<Type of error>)
<Result>: Character string
  • Error of the last .Net procedure that failed.
  • An empty string ("") if:
    • no error was returned by the server,
    • no connection was established to the server.
<Type of error>: Constant
Type of error to return:
DotNetErrActorURL of the server that triggered the error (useful if the procedure is run by several servers).
DotNetErrCodeError of the last .Net procedure run:
  • "VersionMismatch": The DotNet version used on the current workstation is different from the one used on the server.
  • "MustUnderstand": The server does not understand the parameter specified in the header (only if the parameter <Procedure Execution> in the header is set to True).
  • "Client": Incorrect settings for procedure execution.
  • "Server": The server has not executed the Procedure.
Remark: This string can be completed with additional information.. The following format is used: "<Error>.<Information>". For example: "Client.Authentication" if the error is due to client authentication.
DotNetErrDetailsError details. This message is in XML format.
DotNetErrMessageError message returned by the server on the last .Net procedure run.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local