Util Methods

This section discusses the Util class methods. The methods are discussed in alphabetical order.

Syntax

GetLogicalQueue(PhysicalQueueID)

Description

Use the GetLogicalQueue to get the logical queue ID for the specified physical queue.

Parameters

Field or Control

Definition

physicalQueueID

Specify the physical queue ID that you want to find the logical queue for, as a string.

Returns

A string containing the logical queue ID.

Example

The following code example returns the logical queue ID for a given physical queue ID .

&LogicalQueueID = &testUtil.GetLogicalQueue(&PhysicalQueueID);

Syntax

GetTimeDiff(DateTime1, DateTime2)

Description

Use the GetTimeDiff method to determine the difference between two DateTime values.

Parameters

Field or Control

Definition

DateTime1

Specify the starting date and time as a DateTime value.

DateTime2

Specify the ending date and time as a DateTime value.

Returns

A number specifying the difference between the two DateTime values (in seconds.)

Example

In the following example, &nPeriod is 15 minutes.

&DTM1 = DateTimeValue("10/09/97 10:35:36");
&DTM2 = DateTimeValue("10/09/97 10:50:36");

Local number &nPeriod = &myUtil.GetTimeDiff(&DTM1, &DTM2) / 60;