PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV and WINDEV Mobile 26 feature!
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
The MandatoryInput property is used to determine if an input control is mandatory, and to modify this characteristic.
Example
IF m_bCriticalAccount THEN
EDT_Password.MandatoryInput = True
END
Syntax

Determining if an input control is mandatory Hide the details

<Result> = <Control used>.MandatoryInput
<Result>:
  • True if input is mandatory. In this case, the control will throw errors in the following cases:
    • Edit control: Error if the control is empty.
    • Editable Combo Box control: Error if the control is empty.
    • Non-editable Combo Box control: Error if no row is selected.
    • Check Box control: Error if no option is checked.
    • Radio Button control: Error if no option is checked.
    • Rating control: Control marked as with errors if no stars are displayed.
  • False otherwise.
<Control used>: Control name
Name of control used. This control can be:
  • an edit control,
  • a Check Box control,
  • a Radio Button control,
  • a Combo Box control,
  • a Rating control.

Enabling or disabling mandatory input in a control Hide the details

<Control used>.MandatoryInput = <Required input>
<Control used>: Control name
Name of control used. This control can be:
  • an edit control,
  • a Check Box control,
  • a Radio Button control,
  • a Combo Box control,
  • a Rating control.
<Required input>: Boolean
  • True if input is mandatory. In this case, the control will throw errors in the following cases:
    • Edit control: Error if the control is empty.
    • Editable Combo Box control: Error if the control is empty.
    • Non-editable Combo Box control: Error if no row is selected.
    • Check Box control: Error if no option is checked.
    • Radio Button control: Error if no option is checked.
    • Rating control: Control marked as with errors if no stars are displayed.
  • False otherwise.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment