ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
  • Modifying the values displayed
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
Warning
From version 17, FieldError is kept for backward compatibility. This function is replaced by ControlError.
Customizes the value displayed in the controls when the value cannot be displayed.
Example
// Define the ceOverflow error
ControlError(ceOverflow, "The control mask is too small")
Syntax
ControlError(<Type of error> , <Error message>)
<Type of error>: Constant
Type of error:
ceBrokenBindingThe value of linked item is not found (the linked value does not exist or an error occurred while it was read).Value displayed by default (corresponds to 3 sharp characters): "###"
ceNullThe linked item is an HFSQL item that contains NULL.Value displayed by default (empty string): ""
ceOverflowThe control value is greater than the input/display mask defined for the control.Value displayed by default (corresponds to 5 plus characters): "+++++"
ceReadFieldError while reading an item: the item does not exist, the data file is empty, ...Value displayed by default (corresponds to 4 sharp characters): "####"
<Error message>: Character string
New error message associated with the type of error.
Remarks

Modifying the values displayed

The new values will be effective only for future errors. The values assigned to the controls before using ControlError do not change.
The change is global to the current program.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help