IsValid

The IsValid property of the Command interface indicates whether the object is valid.

Applies To
clsCubeCommand clsDatabaseCommand

Data Type

Boolean

Access

Read-only

Remarks

Because of the flexible nature of command objects, only the following checks are performed:

The only way to see if a command functions the way you want it to is to execute it.

Example

Use the following code to return the validity status of a command object:

'Assume an object (dsoCmd) of ClassType clsCubeCommand exists

If dsoCmd.IsValid Then

    'Command is valid - save

Else

    'Error with one or more properties

End If

See Also
About Decision Support Objects Using Decision Support Objects
Properties Cross-Reference  

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