ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
DecimalPart (Property)
In french: PartieDécimale
HFSQL ClassicHFSQL Client/ServerAvailable only with these kinds of connection
The DecimalPart property is used to configure Numeric items. You can:
  • Find out the number of digits in the decimal part of a Numeric item.
  • Define the number of digits in the decimal part of a Numeric item.
Remark: The IntegerPart property is used to define and get the number of digits in the integer part of a Numeric item.
Example
// 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

Find out the number of digits in the decimal part of a Numeric item Hide the details

Result> = <Data file>.<Item>.DecimalPart
<Result>: Integer
Number of digits taken into account by the decimal 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 decimal part of a Numeric item Hide the details

<Item>.DecimalPart = <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 to take into account for the decimal part of a Numeric item.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help