ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
  • Modifying the values displayed
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 17, FieldError is kept for backward compatibility. This function has been replaced with 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).Default display value (corresponds to 3 hash characters): "###".
ceNullThe linked item is an HFSQL item that contains NULL.Default value displayed (empty string): "".
ceOverflowThe control value is greater than the input/display mask defined for the control.Default value (corresponds to 5 characters plus): "+++++".
ceReadFieldError reading a field: the field doesn't exist, the data file is empty, ...Default display value (corresponds to 4 hash 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: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help