Table of Contents

TTMSMCPSamplingStopReasonHelper.FromString Method

Converts a protocol stop-reason name into the matching value.

API unit family: TMS.MCP.Sampling Declaring type: TTMSMCPSamplingStopReasonHelper

Syntax

class function FromString(const AReason: string): TTMSMCPSamplingStopReason; static;

Parameters

Name Description
AReason Stop-reason name to convert, compared case-insensitively.

Returns

The matching value, or ssrCustom for any name that is not one of the standard reasons, so that a provider-specific reason is preserved rather than rejected.