AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
DecimalPart (Property)
 
HFSQL ClassicHFSQL Client/ServerDisponible solo con estos tipos de conexión
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 Numeric field.
Ejemplo
// 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
...
Sintaxis

Find out the number of digits in the decimal part of a Numeric item Ocultar los detalles

<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 Ocultar los detalles

<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.
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 13/05/2025

Señalar un error o enviar una sugerencia | Ayuda local