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
  • How to know whether a data file supports the management of NULL value?
  • Limitations
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
The Null property is used to manage the NULL value in items of HFSQL data files or in items of data files accessed via Native Connectors.
This property is used to:
  • Assign NULL to the item for the current record.
  • Find out whether the item is associated with the NULL value for the current record.
  • Define the default value of an item when the item is described programmatically. You can also use the DefaultValue property.
Management of nullable values If the "Permitir tipos que admiten valores NULL" option is checked in the project description, this property is no longer needed to find out or modify the value of the field. This option allows you to:
  • directly assign a Null value to an HFSQL item using the following syntax:
    File.Item = Null
  • check whether an HFSQL item holds a Null value using the following syntax:
    IF File.Item = Null THEN
    ...
    END
For more details, see NULL value management: Allow nullable types.
Ejemplo
// Assign NULL to the Customer.CellPhone item
Customer.CellPhone.Null = True
Sintaxis

Check whether the item is associated with the NULL value Ocultar los detalles

<Result> = <Data file>.<Item>.Null
<Result>: Boolean
  • True if the item associated with the current record has a NULL value,
  • False otherwise.
<Data file>: Character string
Logical 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.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetCódigo de Usuario (UMC)Ajax

Assigning NULL to an item Ocultar los detalles

<Data file>.<Item>.Null = <Null value>
<Data file>: Character string
Logical 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 item used.
<Null value>: Boolean
  • True to assign NULL to the specified item for the current record.
  • False otherwise.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetCódigo de Usuario (UMC)Ajax

Defining the default value of an item in a file defined programmatically Ocultar los detalles

<Data file>.<Item>.Null = <Null value>
<Data file>: Character string
Logical name of the data file used. This name is defined with the File Description type.
<Item>: Character string
Name of item used.
<Null value>: Boolean
  • True if the default value of item must be null,
  • False otherwise.
Observaciones

How to know whether a data file supports the management of NULL value?

  • To determine if a data file allows the use of the NULL value, use the NullSupported property.
  • To determine if am item allows the use of the NULL value, use the NullAllowed property.
Caution:
  • Assigning the property Null property on a data file or field that does not support NULL value management is prohibited: a fatal error is displayed.
  • Reading the Null property on a data file or item that does not support the NULL value always returns False.
For more details on how to use NULL values in data files and items, see NULL values in HFSQL.

Limitations

  • The NULL value cannot be used:
    • on array items.
    • on automatic identifiers.
    • on composite keys.
  • The NULL value cannot be assigned several times to an item that takes the management of duplicates into account.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 08/10/2025

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