ObjectExists

Top  Previous  Next

×V5.0Ø

S

A

W

WS

ü

Syntax -

If ObjectExists <ObjectName> …

       Where:

               <ObjectName> is a valid object created through a CreateObject or GetObjectData command.

 

Description:

This comparison operator is used to determine if a specified object exists.  This comparison returns a TRUE condition is the specified object has been created.  This comparison operator can be used with either an in-line If (the original OLIE™ syntax) or a Block If.

 

Sample:

       The following IF statement will look for the existence of an object named "NPI", if found it will call FindPhysician, if not found it will create the object and call FindPhysician.

If ObjectExists NPI Then

       Call FindPhysician

Else

       CreateObject NPI "C:\Temp\NPI.xml"

       Call FindPhysician

EndIf

 

See Also:

Complex If Comparisons

CreateObject

GetObjectData