|
|
|
|
|
IntegerPart (Property) In french: PartieEntière
![HFSQL Classic HFSQL Classic](https://doc.windev.com/ext/images/us/HF.png?-2134303037) Available only with these kinds of connection
The IntegerPart property is used to configure Numeric items. You can: - Find out the number of digits in the integer part of a Numeric item.
- Define the number of digits in the integer part of a Numeric item.
Remark: The DecimalPart property is used to define and get the number of digits in the decimal part of a Numeric item.
// Describe the AFile data file ... Â // Describe the "Amount" item AnItem.Name = "AMOUNT" AnItem.Type = hItemNumeric AnItem.IntegerPart = 15 AnItem.DecimalPart = 7 Â // Validate the description of the "Amount" item HDescribeItem(AFile, AnItem) Â // Validate the description of the AFile data file ...
Syntax
Finding out the number of digits in the integer part of a Numeric item Hide the details
<Result> = <Data file>.<Item>.IntegerPart
<Result>: Integer Number of digits taken into account by the integer part of the item. <Data file>: Character string Name of the data file used. This name was defined in the data model editor or with the File Description type. <Item>: Character string Name of the item used. This name was defined in the data model editor or with the Item Description type.
Defining the number of digits in the integer part of a Numeric item Hide the details
<Item>.IntegerPart = <Number of digits>
<Item>: Character string Name of the item used. This name was defined by the Item Description type. <Number of digits>: Integer Number of digits that must be taken into account for the integer part of the Numeric item.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|