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
SyntaxSOProjects ProjectsByName(
string Name
)
Function ProjectsByName (
Name As String
) As SOProjects
Dim instance As IFind
Dim Name As String
Dim returnValue As SOProjects
returnValue = instance.ProjectsByName(Name)
SOProjects^ ProjectsByName(
[InAttribute] String^ Name
)
Parameters
- Name
- Type: SystemString
name of projects to retrieve
Return Value
Type:
SOProjectsSOProjects – a collection of the matching projects
ExamplesProjectsByName
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
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