Click or drag to resize

IProjectsGetFirst Method

Return the first project, or NULL if the list is empty.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOProject GetFirst()

Return Value

Type: SOProject
SOProject – the first project in the collection
Examples

GetFirst

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim Proj
Dim Projs
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    set Projs = objSO.Database.Find.ProjectsByName("CRM5 ")
    Proj = Projs.GetFirst()
    While Not Projs.EOF
        msgbox Proj.identity
        Proj = Projs.GetNext()
    wend        
        msgbox "No more project match the search criteria", vbInformation, "SuperCOM"
else
        MsgBox "Unable to connect to database"
end if

See Also