ISelectionIsAvailable Property |
Namespace: SuperOffice.COM.SuperOfficeDB
IsAvailable
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO Dim objSelection Set objSO = CreateObject("SuperOfficeDB.Database") If not (objSO is nothing) Then objSO.Login "<userID>", "<password>" Set objSelection = objSO.GetSelection(2) if objSelection.IsAvailable = true then MsgBox "Selection with selection_id=2 has the following name: " & objSelection.name else msgbox "There is no selection in the database with selection_id=2" end if else MsgBox "Unable to connect to database" end if Set objSO = Nothing