AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
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
The EmptyIfZero property is used to:
  • Find out the management mode of zero value in a control.
  • Modify the management mode of zero value in a control.
Example
EDT_Edit1 = 0
IF CBOX_ALL = True THEN
EDT_Edit1.EmptyIfZero = False // Displays "0,00"
ELSE
EDT_Edit1.EmptyIfZero = True // Displays ""
END
Syntax

Finding out the management mode of zero value Hide the details

<Result> = <Control used>.EmptyIfZero
<Result>: Boolean
  • True if the control is empty when its value corresponds to zero,
  • False otherwise.
<Control used>: Control name
Name of the control to be used:
  • Numeric edit control,
  • Check Box column in a table or in a TreeView Table.
  • Combo box or combo box displaying a table.
  • Static control.

Modifying the management mode of zero value Hide the details

<Control used>.EmptyIfZero = <Management mode>
<Control used>: Control name
Name of the control to be used:
  • Numeric edit control,
  • Check Box column in a table or in a TreeView Table.
  • Combo box or combo box displaying a table.
  • Static control.
<Management mode>: Boolean
  • True if the control is empty when its value corresponds to zero,
  • False otherwise.
Remarks
The EmptyIfZero property can be used on:
  • numeric edit controls.
    When a numeric edit control displays the value 0, you can either display the valur, or leave the control empty.
    The EmptyIfZero property corresponds to the "Reset if zero" option, in the "Details" tab of the numeric edit control description window.
  • read-only Check Box columns in tables and TreeView Tables.
    The box can be displayed (or not) if it is not checked.
    The EmptyIfZero property corresponds to the "Hide checkmark if unchecked (read-only)" option, in the "Details" tab of the Check Box column description window.
  • Combo Box controls displaying a list or table.
  • Static controls.
Versión mínima requerida
  • Versión 18
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 11/04/2023

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