PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Modifying the values displayed
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
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
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Customize the feOverflow error
ControlError(feOverflow, "The control mask is too small")
Syntax
ControlError(<Type of Error> , <Error Message>)
<Type of Error>: Constant
Type of error:
feOverflowThe 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 a HFSQL item that contains the NULL value.Value displayed by default (empty string): ""
<Error Message>: Character string (with quotes)
New error message associated with the type of error.
Remarks

Modifying the values displayed

The new values will be effective for the forthcoming errors only. The values assigned to the control before using ControlError are not modified.
The change is global to the current program.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment