info(“serverconnection”)

The info(“serverconnection”) function returns true if the currently active database is connected to the server.


Description

The info(“serverconnection”) function returns true if the currently active database is connected to the server. If the database is not connected, or if it is not a shared database, it returns false.

This example displays a message and stops if the current database isn’t currently connected.

if info("serverconnected")=false()
    message "Database is open but not connected to the server."
    return
endif
...
... more code here
...

Note: Another way to find out if a database is currently connected is to use the dbinfo( function. This function can find out if any open database is connected, not just the current database.

if dbinfo("connected","Checkbook")
    message "Checkbook is not connected to the server."
    return
endif

See Also


History

VersionStatusNotes
10.2No ChangeCarried over from Panorama 6.0