ALM Site Administratation Client Type Library
Renaming a project
Private Sub SetProjectProperty()
'The following Visual Basic example sets the property
' for a project name.
'The project is deactivated, renamed, and
' then reactivated.
    Dim sDomainName As String
    Dim sProjectName As String
    Dim sReply As String

    On Error GoTo err
    sDomainName = "MyDomain"
    sProjectName = "MyProject"

    sReply = m_SAClient.DeactivateProject _
        (sDomainName, sProjectName)
    sReply = m_SAClient.SetProjectProperty _
        (sDomainName, sProjectName, _
        SA_PROJECT_NAME, "YourProject")
    MsgBox sReply
    sReply = m_SAClient.ActivateProject _
        (sDomainName, "YourProject")
Exit Sub
err:
    MsgBox "Program failed:" + err.Description
End Sub
Send documentation feedback to HP.