EnumRef.<Enumeration name>.IsEmpty

Syntax:

IsEmpty()

Returned value:

Type: Boolean.
True indicates that a reference points to no object (empty reference); otherwise it is False.

Description:

Determines whether a reference is empty or not.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (server).

Example:

TypeOfContractor = Contractor.Type;
If 
TypeOfContractor.IsEmpty() Then
    Message(""  +Contractor + ". Unknown type of contractor!");
EndIf
;


    

1C:Enterprise Developer's Community