Execute Method

SQL-NS

SQL-NS

Execute Method

The Execute method executes the command associated with the SQLNamespaceCommand object related to the user interface component associated with the command.

Applies To
SQLNamespaceCommand Object
Syntax

object.Execute(
[hWnd],
[modality])

Parts

object

Expression that evaluates to an object in the Applies To list

hWnd

Window handle

modality

Modality of the window

Prototype (C/C++)

HRESULT Execute(
long hwnd ,
SQLNSModality modality);

Remarks

The Execute method optionally provides a parent window. By default, the window handle specified in the Initialize method will be used. The modality parameter suggests preference in modality of the user interface. SQL Namespace, due to the modality of a specific user interface component, can overrule the requested modality. If there is no parent window handle specified during the Initialize call and the modality is SQLNamespace_PreferModal, the value of this parameter cannot be NULL.