ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The TokenDeletable property is used to:
  • Determine if the end user is allowed to delete tokens in a "Text token" Edit control.
  • Allow or prevent the end user from deleting tokens in a "Text token" Edit control.
Example
IF CBOX_AllowDeletion THEN
EDT_Email.TokenDeletable = True
ELSE
EDT_Email.TokenDeletable = False
END
Syntax

Determining if the end user is allowed to delete tokens Hide the details

<Result> = <Edit control>.TokenDeletable
<Result>: Boolean
  • True if the end user is allowed to delete tokens,
  • False otherwise.
<Edit control>: Control name
Name of the "Text token" Edit control being used.

Allowing or preventing the user from deleting tokens Hide the details

<Edit control>.TokenDeletable = <Authorization>
<Edit control>: Control name
Name of the "Text token" Edit control being used.
<Authorization>: Boolean
  • True if token deletion is allowed,
  • False otherwise.
Remarks
  • An error is generated:
    • if the edit control is not a "Text token" Edit control.
    • If the TokenEnabled property is set to False.
  • If the TokenDeletable property is set to True (default), the user is allowed to delete tokens with the "X" icon or the Delete key.
  • If the TokenDeletable property is set to False, the "X" icon is not displayed and the Delete key has no effect.
Related Examples:
The Text token edit control Unit examples (WINDEV): The Text token edit control
[ + ] Using a "Text token" edit control.
The text token edit control Unit examples (WEBDEV): The text token edit control
[ + ] Using a "Text token" edit control.
The Text token edit control Unit examples (WINDEV Mobile): The Text token edit control
[ + ] Using a "Text token" edit control.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/17/2024

Send a report | Local help