Objectexist

This function checks if a given class exists on an application server.

It returns '1' if the class exists; otherwise, it returns '0'.

Syntax

FOUND=objectexist(SERVER, FOLDER, CLASS_NAME)
It uses the following parameters:

Example

FOUND=objexist("","","C_CUSTOMER")If FOUNDLocal Instance MYCUSTOMER Using C_CUSTOMEREndif

Note

objectexist execution is based on a Sage X3 service. Only servers on which a Sage X3 administration service (adxd) have been installed, can be accessed by this instruction.

See also

filexist.