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
..EmptyIfZero is used 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 the Windows Mobile applications.
New in version 22
Windows Mobile This property is now available for the Windows Mobile applications.
Windows Mobile This property is now available for the Windows Mobile applications.
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 Name>..EmptyIfZero
<Result>: Boolean
  • True if the control is empty when its value corresponds to zero,
  • False otherwise.
<Control Name>: Character string (with or without quotes)
Name of control to use:
  • Numeric edit control,
  • Versions 22 and later
    Check Box column in a table or in a treeview table.
    New in version 22
    Check Box column in a table or in a treeview table.
    Check Box column in a table or in a treeview table.
  • 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.

Modifying the management mode of zero value Hide the details

<Control Name>..EmptyIfZero = <Management Mode>
<Control Name>: Character string (with or without quotes)
Name of control to use:
  • Numeric edit control,
  • Versions 22 and later
    Check Box column in a table or in a treeview table.
    New in version 22
    Check Box column in a table or in a treeview table.
    Check Box column in a table or in a treeview table.
  • 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.
<Management Mode>: Boolean
  • True if the control is empty when its value corresponds to zero,
  • False otherwise.
Remarks
..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.
    ..EmptyIfZero corresponds to the "Reset if zero" option found in the "Details" tab of the description window of numeric 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.
    ..EmptyIfZero corresponds to the "Hide the box if unchecked (read-only)" option found in the "Details" tab of the description window of Check Box 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.
    ..EmptyIfZero corresponds to the "Hide the box if unchecked (read-only)" option found in the "Details" tab of the description window of Check Box 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.
    ..EmptyIfZero corresponds to the "Hide the box if unchecked (read-only)" option found in the "Details" tab of the description window of Check Box 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.
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment