PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
DecimalPart (Property)
In french: PartieDécimale
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
..DecimalPart is used to configure the 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: ..IntegerPart is used to define and find out the number of digits in the integer part of a Numeric item.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Describe the AFile 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 AFile file
...
Syntax

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

<Result> = <File Name>.<Item Name>..DecimalPart
<Result>: Integer
Number of digits taken into account by the decimal part of the item.
<File Name>: Character string (with or without quotes)
Name of data file used. This name was defined in the data model editor or by the File Description type.
<Item Name>: Character string (with or without quotes)
Name of item used. This name was defined in the data model editor or by the Item Description type.

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

<Item Name>..DecimalPart = <Number of Digits>
<Item Name>: Character string (with or without quotes)
Name of 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