TTMSMCPTaskStatusHelper.FromString Method
Converts a protocol state name into the matching value.
API unit family: TMS.MCP.Tasks
Declaring type: TTMSMCPTaskStatusHelper
Syntax
class function FromString(const AStatus: string): TTMSMCPTaskStatus; static;
Parameters
| Name | Description |
|---|---|
AStatus |
State name to convert, compared case-insensitively. |
Returns
The matching state, or tsWorking when the name is not recognized.