Table of Contents

Txt2Dec Procedure

Codeunit Text File Importer

Converts text to decimal, according to configured settings. The settings must first be provided in any of the LoadFields() functions before calling this function overload.

Overloads

Name Description
Txt2Dec(Record "QWETB File Settings" temporary; Text): Decimal Converts text to decimal, according to configured settings.
Txt2Dec(Text): Decimal Converts text to decimal, according to configured settings.

Txt2Dec(Record "QWETB File Settings" temporary; Text) Procedure

Converts text to decimal, according to configured settings. The settings must first be provided in any of the LoadFields() functions before calling this function overload.

Signature

Txt2Dec(TempFileSettings: Record "QWETB File Settings" temporary; DecimalAsText: Text) DecimalValue: Decimal

Parameters

TempFileSettings Record "QWETB File Settings" temporary

The file settings that specifies how the decimal value is formatted.

DecimalAsText Text

The decimal value in text format.

Returns

Decimal

The decimal value.

Txt2Dec(Text) Procedure

Converts text to decimal, according to configured settings. The settings must first be provided in any of the LoadFields() functions before calling this function overload.

Signature

Txt2Dec(DecimalAsText: Text) DecimalValue: Decimal

Parameters

DecimalAsText Text

The decimal value in text format.

Returns

Decimal

The decimal value.

Remarks

To use this function without first importing a file, use the overload of this function that takes the File Settings record as a parameter.

This documentation is generated from Smart Toolbox v27.1