Sent to the Application Actions section of the outline when a SQL function fails. If you process this message, you can control how the application responds to SQL errors on a global level instead of using the default error processing which displays a dialog box with the error number and error text. Call SqlExtractArgs to get the error code, error position, and Sql Handle from the wParam and lParam. You can also use When SqlError in any actions section of the outline to process an error at a local level. Message Variables hWndForm Handle of the top-level window that called the Sql* function that failed, except when: Code in the Application Actions section calls a Sql* function and it fails. hWndForm is null (hWndNULL) in this case. You programatically change the SQL execution context. In this case, hWndForm is the handle of the top-level window in the execution context that you set. If there is no top-level window in the execution context that you set, then hWn

Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.2 (in PPJ.Runtime.2.dll) Version: 2.0.1044.0 (2.0.1044.5276)

Syntax

C#
public const int SAM_SqlError

See Also