ISService.ServicePrice

Description

The price of the service.

Syntax

object.ServicePrice

Part Attribute Type Description
object Required
The object always implements the ISService interface
Restriction: This property is readonly.

Return Value

ISServicePrice

Example

Display the number of the services loaded on the basis of the selected filter, some information about them, including the service price.

Dim aFilter
Dim aService
Dim aServices
Dim aMessage
Dim i

Set aFilter = Profile.CreateServicesFilter
aFilter.Description = "Injection"
set aServices = Profile.LoadServicesByFilter(aFilter)

aMessage = "Services Count = " & aServices.Count & vbNewLine
for i = 0 to aServices.Count - 1
  set aService = aServices.Item(i)
  aMessage = aMessage & vbNewLine & "----------------------------" & vbNewLine &_
    "Description: " & aService.Description & vbNewLine &_
    "Code: " & aService.Code & vbNewLine &_
    "Added: " & aService.Added & vbNewLine &_
    "Changed: " & aService.Changed & vbNewLine &_
    "Status: " & aService.Status & vbNewLine &_
    "ID: " & aService.ID & vbNewLine &_
    "Output Code: " & aService.OutputCode & vbNewLine &_
    "Default Delivery Time: " & aService.DefaultDeliveryTime & vbNewLine &_
    "Group ID: " & aService.GroupId & vbNewLine 
    
  if not aService.ServicePrice is nothing then
    aMessage = aMessage & vbNewLine & "Service Price: " & aService.ServicePrice.Amount
  end if  
next      

Profile.MsgBox(aMessage)   
Note:

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

Version information

Added in v7.8.0