This function returns the service with the specified ID.
object.LoadServiceByID(aId)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aId |
In, Required | int |
ID of the service |
Display the description of the service, its code, date and time it was added.
Dim aService
Dim aMessage
On Error Resume Next
Set aService = Profile.LoadServiceByID(296)
if Err.Number <> 0 then
aMessage = "There is no service with the specified ID"
Err.Clear
else
aMessage = "The service '" & aService.Description & "' (" & aService.Code &_
") was added on " & aService.Added
end if
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Service ID cannot be found, but Service can be found in
.