Checks whether an Automation object has been created or cleared.

Ok := ISCLEAR(Automation)

Parameters

Automation

Type: Automation

A variable that has previously been declared.

Property Value/Return Value

Type: Boolean

true if any of the following is true; otherwise, false:

  • The Automation variable has not been created. See CREATE Function (Automation).
  • The Automation variable has been cleared. See CLEAR Function.
  • The Automation variable has been assigned NULL by an Automation server.

Remarks

This function is not supported in the Microsoft Dynamics NAV Web client.

Example

The following example shows how you can use the ISCLEAR function. This example requires that you create the following variables.

Name DataType Subtype

Document

Automation

'Microsoft XML, V3.0'.DOMDocument

ReturnValue

Boolean

Not applicable

 Copy Code
ReturnValue := ISCLEAR(Document);
// ReturnValue will be TRUE.
CREATE(Document);
ReturnValue := ISCLEAR(Document);
// ReturnValue will be FALSE.
CLEAR(Document);
ReturnValue := ISCLEAR(Document);
// ReturnValue will be TRUE.

See Also