PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
The Property VideSiZero allows to:
  • Find out the management mode of zero value in a control.
  • Modify the management mode of zero value in a control.
Versions 22 and later
Windows Mobile This property is now available for Windows Mobile applications.
New in version 22
Windows Mobile This property is now available for Windows Mobile applications.
Windows Mobile This property is now available for Windows Mobile applications.
Versions 26 and later
Android Widget This property is now available in Android Widget mode.
Android This property is now available for Android applications.
New in version 26
Android Widget This property is now available in Android Widget mode.
Android This property is now available for Android applications.
Android Widget This property is now available in Android Widget mode.
Android This property is now available for Android applications.
Example
EDT_Edit1 = 0
IF CBOX_ALL = True THEN
SAI_Saisie1.VideSiZéro = False // Displays "0,00".
ELSE
SAI_Saisie1.VideSiZéro = 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 control to use:
  • Numeric edit control,
  • Versions 22 and later
    Column of table or hierarchical table of type Switch.
    New in version 22
    Column of table or hierarchical table of type Switch.
    Column of table or hierarchical table of type Switch.
  • Versions 22 and later
    Combo box or combo box displaying a table.
    New in version 22
    Combo box or combo box displaying a table.
    Combo box or combo box displaying a table.
  • Versions 25 and later
    Static control.
    New in version 25
    Static control.
    Static control.

Modifying the management mode of zero value Hide the details

<Control used>.EmptyIfZero = <Management mode>
<Control used>: Control name
Name of control to use:
  • Numeric edit control,
  • Versions 22 and later
    Column of table or hierarchical table of type Switch.
    New in version 22
    Column of table or hierarchical table of type Switch.
    Column of table or hierarchical table of type Switch.
  • Versions 22 and later
    Combo box or combo box displaying a table.
    New in version 22
    Combo box or combo box displaying a table.
    Combo box or combo box displaying a table.
  • Versions 25 and later
    Static control.
    New in version 25
    Static control.
    Static control.
<Management mode>: Boolean
  • True if the control is empty when its value corresponds to zero,
  • False otherwise.
Remarks
The Property EmptyIfZero can be used on:
  • the 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 "Blank if zero" option available in the "Detail" tab of the description window of a digital edit control.
  • Versions 22 and later
    the read-only Check Box columns found in the tables and in the treeview tables.
    The box can be displayed (or not) if it is not checked.
    The EmptyIfZero property corresponds to the option "Hide check mark if unchecked (in display)" available in the "Detail" tab of the description window of a Switch type column.
    New in version 22
    the read-only Check Box columns found in the tables and in the treeview tables.
    The box can be displayed (or not) if it is not checked.
    The EmptyIfZero property corresponds to the option "Hide check mark if unchecked (in display)" available in the "Detail" tab of the description window of a Switch type column.
    the read-only Check Box columns found in the tables and in the treeview tables.
    The box can be displayed (or not) if it is not checked.
    The EmptyIfZero property corresponds to the option "Hide check mark if unchecked (in display)" available in the "Detail" tab of the description window of a Switch type column.
  • Versions 22 and later
    the Combo Box controls displaying a list or the Combo Box controls displaying a table.
    New in version 22
    the Combo Box controls displaying a list or the Combo Box controls displaying a table.
    the Combo Box controls displaying a list or the Combo Box controls displaying a table.
  • Versions 25 and later
    Static controls.
    New in version 25
    Static controls.
    Static controls.
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment