IProjectIsValid Property |
Namespace: SuperOffice.COM.SuperOfficeDB
IsValid
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO Dim objProject Set objSO = CreateObject("SuperOfficeDB.Database") If not (objSO is nothing) Then objSO.Login "<USERID>", "<PASSWORD>" Set objProject = objSO.GetProject (2) 'Remove the ' to load the Project to buffer, and this objProject will be valid. 'test = objProject.name if objProject.Isvalid = true then MsgBox "Project with project_id=2: " & objProject.Name else msgbox "There is no project in buffer with project_id=2" end if else MsgBox "Unable to connect to database" end if Set objSO = Nothing