Returns the path of the Master database, or null if current database is not Network Optimized.
When you use the Network Optimize command, Alpha Anywhere creates a shadow database on your local computer that is based on a master database on a shared network drive. When you have the shadow database open, the A5.GET_MASTER_PATH() method returns the path of the master database from which the current shadow database was derived. If the current database is not a shadow database, the function returns a NULL string.
The following example determines whether the database is a shadow database, then uses this information to determine the path to use to save a report.
dim this_path as C dim bare_path as C dim app_path as C dim shadowed as L this_path=A5.Get_Path() bare_path=A5.Get_Master_Path() if len(alltrim(bare_path) ) = 0 then 'if zero, not shadowed shadowed =.F. app_path = this_path + chr(92) else shadowed =.T. app_path = bare_path + chr(92) end if