Execute Method (SQL-NS)

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])

Part Description
object Expression that evaluates to an object in the Applies To list
hWnd Window handle
modality Modality of the window

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.

Prototype (C/C++)

HRESULT Execute(
long hwnd ,
SQLNSModality modality);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.