A5.GET_MASTER_NAME()

Syntax

Server_Path as C = A5.GET_MASTER_NAME()

Description

The A5.GET_MASTER_NAME() method returns the name of the master database if the workstation is shadowed.

Supported By

Alpha Five Version 5 and Above

Example

The following script checks to see whether the user is using a master or shadowed database.

dim Master_name as C

 

Master_name = a5.Get_Master_Name()

 

if (Master_name = "") then
ui_msg_box("STOP", "You are NOT in a Shadow database." +crlf(2) + "You can only run this operation from a Shadow.", UI_STOP_SYMBOL+UI_OK)
END
End if

See Also

Filename Functions, Developer Functions