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.
Example
The following is an example of 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
|
|
|
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