Recupérer l'universalID d'un Agent
- Code : Tout sélectionner
Public Function AgentUNID(wAgent As NotesAgent)
On Error Goto ErrorHandle
AgentUNID = ""
If wAgent Is Nothing Then
Error 9999,"wAgent is Nothing"
Exit Function
End If
AgentUNID = Strleft(Strright(Ucase(wAgent.NotesURL),"NSF/"),"?OPENAGENT")
Exit Function
ErrorHandle:
Msgbox "("+Cstr(Getthreadinfo (1))+" Call by "+Cstr(Getthreadinfo(10))+")"+Chr(10)+"Erreur " + Str(Err) + " : "+Chr(10) + Cstr(Error)+". "+Chr(10)+"Ligne N° "+Cstr(Erl),16," ERREUR !"
AgentUNID = ""
Exit Function
End Function