ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Note The IntegerPart property defines and displays the number of digits in the integer part of a Numerical field.
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

<Résultat> = <Fichier de données>.<Rubrique>.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 is 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 is defined with 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: 12/06/2024

Send a report | Local help