ISaleProject Property |
Namespace: SuperOffice.COM.SuperOfficeDB
Project
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO Dim result Set objSO = CreateObject("SuperOffice.Application") If not (objSO is nothing) Then result = objSO.CurrentSale.project.Identity if result = 0 then msgbox "The current Sale is not part of a project!", vbInformation + vbOkOnly, "SuperCOM" else msgbox "Current Sale is located on the project: " & _ objSO.CurrentSale.Project.Name, vbInformation + vbOKOnly, "SuperCOM" end if else MsgBox "Unable to connect to database" end if Set objSO = Nothing