PropertyExists

Top  Previous  Next

×V5.1Ø

S

A

W

WS

ü

Syntax -

If PropertyExists <PropertyName> …

       Where:

               <PropertyName> is a valid property of an Object created through a CreateObject or GetObjectData command.

 

Description:

This comparison operator is used to determine if a specified object property exists.  This comparison returns a TRUE condition is the specified object property 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 a Count property on the Results collection. If found it will call the label FindPhysician, if not found it will execute the GetObjectData command.

If PropertyExists Return.Results.Count Then

       Call FindPhysician

Else

       GetObjectData Return NPIObject.NPILookup("","NPI-1","Sarah","","10")

EndIf

 

See Also:

Complex If Comparisons

CreateObject

GetObjectData

ExecuteObjectMethod

Collections