Skip to main content

TdxSpreadSheetCell.AsCurrency Property

Specifies the cell object’s Currency value.

Declaration

property AsCurrency: Currency read; write;

Property Value

Type
Currency

Remarks

You can use this property to:

  • Assign a new Currency value to the cell object (the DataType property value changes to cdtCurrency as a result);

  • Read a Currency value stored in the cell object;

  • Interpret the cell object’s data as a Currency value, if possible.

The AsCurrency property returns 0 if it is impossible to interpret the stored cell data as a Currency value (that is, if the cell object is empty or contains a string). Use the DataType property to identify the cell object’s actual value type.

See Also