1396
Automation Interface, Add-Ins and Tools / Element status setting???
« on: November 17, 2004, 05:57:52 pm »
What am I doing wrong - after excecution the element is entered, the name,notes and type etc is correct but the status is set to Proposed?
Function addreq(desc As String, dets As String) As String
Dim rr As Object
Set rr = reqtspkg.Elements.AddNew(desc, "Requirement")
rr.Notes = dets
rr.Status = "Approved"
rr.Type = "Functional"
rr.Update
reqtspkg.Elements.Refresh
addreq = rr.ElementGUID
End Function
tia
Bruce
Function addreq(desc As String, dets As String) As String
Dim rr As Object
Set rr = reqtspkg.Elements.AddNew(desc, "Requirement")
rr.Notes = dets
rr.Status = "Approved"
rr.Type = "Functional"
rr.Update
reqtspkg.Elements.Refresh
addreq = rr.ElementGUID
End Function
tia
Bruce