The fully qualified path and name of an Alpha Anywhere workspace. The extension .adb is assumed.
The A5.LOAD() method closes the current workspace and opens the specified layoutName.
The following script opens the Orders database.
The A5.LOAD() method does not check to see if the new workspace exists before closing the current workspace. (You will be prompted to save any unsaved changes, however.) This script tests to see if workspace cDB exists first.
dim cDB as C cDB = "c:\data\orders.adb" if file.exists(cDB) then a5.load(cDB) else dim msg as C dim title as C title = "Unable to load requested workspace" msg = "Invalid alias or filename" ui_msg_box(title, msg, UI_INFORMATION_SYMBOL) end if