Sub Main()
Dim MyPoint As New Point
Dim obj As New CimChangeApprovalData
'Init Point
Set MyPoint.Id = "MYPOINT"
'Init CimChangeApprovalData with prompts
Select Case MyPoint.ChangeApprovalInfo
Case CP_CHANGEAPPROVALPERFORM
obj.PerformerUserid = AskBox("Performer Userid")
obj.PerformerPassword = AskPassword("Performer Password")
Case CP_CHANGEAPPROVALPERFORMVERIFY
obj.PerformerUserid = AskBox("Performer Userid")
obj.PerformerPassword = AskPassword("Performer Password")
obj.VerifierUserid = AskBox("Verifier Userid")
obj.VerifierPassword = AskPassword("Verifier Password")
Case CP_CHANGEAPPROVALNONE
End Select
'Copy our CimChangeApprovalData into the Point's ChangeApproval
Set MyPoint.ChangeApproval = obj
'Set the point
MyPoint.SetValue = InputBox("Setpoint")
End Sub
|