ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
AutomaticErase (Property)
In french: EffacementAutomatique
The AutomaticErase property is used to:
  • find out whether an edit control is in "Automatic erase" mode.
  • modify the "Automatic erase" characteristic of an edit control.
Remark: If an Edit control is in "Automatic erase" mode, the value in the field is automatically selected when the Edit control is entered.. This characteristic can be configured in the "Details" tab of the description window of control.
Example
// Désactive temporairement l'effacement automatique 
// pour ne pas tout sélectionner lors de l'appel à la fonction DonneFocus

// Mémorise l'effacement automatique actuel
EffacementAuto is boolean 
EffacementAuto = SAI_Saisie1.EffacementAutomatique
SAI_Saisie1.EffacementAutomatique = False

// Redonne le focus au champ de saisie
SetFocus(SAI_Saisie1) 

// Restaure l'effacement automatique
SAI_Saisie1.EffacementAutomatique = True
Syntax

Finding out the "Automatic erase" mode Hide the details

<Current mode> = <Control used>.AutomaticErase
<Current mode>: Boolean
  • True if the "Automatic erase" mode is enabled,
  • False otherwise.
<Control used>: Control name
Name of element used:
  • Edit control,
  • Text table column.

Modifying the "Automatic erase" mode Hide the details

<Control to use>.AutomaticErase = <New mode>
<Control to use>: Control name
Name of element used:
  • Edit control,
  • Text table column.
<New mode>: Boolean
  • True to enable the "Automatic erase" mode,
  • False otherwise.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help