Click or drag to resize

IFindProjectsByName Method

Find collection of Projects using names. If name ends in % then a begins with search is done. Search and retrieve a collection of projects based on project name (starts with)

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOProjects ProjectsByName(
	string Name
)

Parameters

Name
Type: SystemString
name of projects to retrieve

Return Value

Type: SOProjects
SOProjects – a collection of the matching projects
Examples

ProjectsByName

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

This will find all projects that start with Super

VB
Dim objSO
Dim objProjects
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.login "<USERID>", "<password>"
    set objProjects = objSO.Find.ProjectsByName("Super")
    set proj = objProjects.getfirst
    while not objProjects.eof
        item = proj.name
        msgbox item
        set proj = objProjects.Getnext
    wend
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also