callwithindatabase(
)

The callwithindatabase( function returns true if the current procedure was called by another procedure in the same database, false if it was called by a procedure in another database.


Parameters

No parameters.


Description

The callwithindatabase( function returns true if the current procedure was called by another procedure in the same database, false if it was called by a procedure in another database.

This example shows how to make a “private” procedure that can be called by other procedures in the same database but not by procedures in other databases.

if  callwithindatabase() = false()
    return
endif
...
... rest of procedure
...

An alternative would be to replace the return statement with a returnerror statement.


See Also


History

VersionStatusNotes