TTMSFNCUtils.GetBestDelimiter Method
Chooses the most likely delimiter for delimited text.
API unit family: TMSFNCUtils
Declaring type: TTMSFNCUtils
Syntax
class function GetBestDelimiter(ALine1, Aline2: string; ACheckDecimalSeperator: Boolean = True): Char;
Parameters
| Name | Description |
|---|---|
ALine1 |
First sample line. |
Aline2 |
Optional second sample line used to prefer delimiters with consistent field counts. |
ACheckDecimalSeperator |
When True, avoids selecting the current decimal separator as the delimiter. |
Returns
Detected delimiter character, or comma as a fallback.