PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
Versions 16 and later
Linux This function is now available for WINDEV applications in Linux.
New in version 16
Linux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
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:
ceOverflowThe control value is greater than the input/display mask defined for the control.Value displayed by default (corresponds to 5 plus characters): "+++++"
feReadFieldError while reading an item: the item does not exist, the data file is empty, ...Value displayed by default (corresponds to 4 sharp characters): "####"
feBrokenLinkThe 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): ""
<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: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment