$Exist$

$Exist$

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

$Exist$

Checks whether a given Zim object exists in a Zim directory.

Syntax

$exist$(Zim directory name, object name, object type)

Parameters

Zim directory nameA character string or an expression that evaluates to a character string, naming the ZIM directory to which the object would belong
object nameA character string or an expression that evaluates to a character string specifying the object name to be checked in the Zim directory name for its existence
object typeA number or an expression that evaluates to a number determining the type of the object name

Return Value

It returns a $True value if the object name is defined in the Zim directory and is of the specified object type.

It returns a $False value if the object name is not defined in the Zim directory or is not of the specified object type or the Zim directory name is already accessed.

If the object type is 0 (zero), the function will return the object type of the object for subsequent reading of the status of this object (see example).

If the object type is non-zero and the Zim directory name is empty (“”), then the return value is the owning directory name of that object.

Comments

The types of the object are described as the following table:

Object TypeMeaning
0Returns the Object Type
1A Null Object
2Shadow Directory
3Directory
4Entity Set
5Field
6Relationship with no Fields
7Relationship with Fields
8Set
9Document
10List
11Form
12Role
13Variable
14Display
15Virtual Field
16CSet
17Window
18Constant
19Menu

Examples

Check whether the directory “Accounting” is defined in Zim:

$exist$("ZIM", "Accounting", 2)

Investigate the type of the object “Customers” in directory Zim and then test whether it exists or not:

let Var = $exist$("ZIM", "Customers", 0)
$exist$("ZIM", "Customers", Var)
Was this article helpful?
5 out of 5 stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish