Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


9.5.10 ServiceQuery (get the information set for an active service)

Purpose

Gets the information set for an active service.

Syntax
ServiceQuery(ServiceInfoName)
Argument
ServiceInfoName

Specify the name of the service information to be acquired. Write a character string or a variable that stores this value.

Description

The ServiceQuery command gets the settings for an active service and stores them in the service information.

To acquire service information, the service name must be set in the Name keyword in the service information.

The execution result is stored in the _SVC_RTN_ reserved variable. The command returns True on successful execution, or False for all other states.

Example
' Get the setting (service type) for the JP1/Script service.
Dim svType
' Set JP1/Script for "JSService" service information.
ServiceSetValue("JSService", Name::"JP1_Script")
' Get the settings for "JSService" service information.
ServiceQuery("JSService")
' Get the setting (service type) stored in "JSService" service
' information, and store it in the variable.
ServiceGetValue("JSService", Type::svType)
MessageBox("JP1/Script service type: "+svType)
JP1/Script version

Supported from JP1/Script 01-00.