ISProfile.LoadService

Description

This function returns the service by the specified code.

Syntax

object.LoadService(aCode)

Part Attribute Type Description
object Required
The object always implements the ISProfile interface
aCode In, Required
string
The code of the service

Return Value

ISService

Returns the service by the specified code.

Example

Display the description and ID of the service.

Dim aCode
Dim aService
Dim aMessage

aCode = "11Y POL"
Set aService = Profile.LoadService(aCode)

if aService is nothing then
  aMessage = "There is no service with the specified code"
else
  aMessage = "The service '" & aService.Description & "' has ID = " & aService.ID
end if

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Service can be found in Maintain > Services.

Version information

Added in v7.8.0