poIQueryCtrl GetError

Gets the last occurred error description, or returns nothing.

Syntax

poIQueryControl_handle GetError

Application

HyperView Tcl Query

Description

This command retrieves the last occurred error description, or returns nothing.

Example

To get the last error occurred:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set pageIndex [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $pageIndex
set windowIndex [myPageName GetActiveWindow] 	
myPageName GetWindowHandle myWindowName $windowIndex	
myWindowName GetClientHandle myPostName
set modelIndex [myPostName GetActiveModel]
myPostName GetModelHandle myModelName $modelIndex
myModelName GetQueryCtrlHandle myQueryName
myQueryName GetError

Errors

Returns the last occurred error, or an error code (HW_InvalidHandle) if the handle used to invoke the method is no longer valid.