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 TokenEnabled property determines if an Edit control is a "Text token" Edit control.
Example
IF EDT_Email.TokenEnabled = True THEN
EDT_Email.TokenListSeparator = ";.:" + TAB
END
Syntax

Determining if the Edit control is of type "Text token" Hide the details

<Result> = <Edit control>.TokenEnabled
<Result>: Boolean
  • True if the Edit control is a "Text token" Edit control.
  • False otherwise.
<Edit control>: Control name
Name of the Edit control used.
Remarks
When the TokenEnabled property is set to True, if the user enters a separator character or a carriage return (CR), a token is automatically added and the user can continue entering values in the control.
A token is a text block that allows the user to distinguish the different elements entered in a control. For example, tokens are used to easily identify the different recipients of an email.
The value returned or stored by a "Text token" Edit control is a string separated by CR.
For example: paul@mail1.com<CR>mar@mail2.com
The separators that trigger the creation of new tokens in an Edit control are defined by the TokenListSeparator property.
To define whether or not duplicates are allowed, use the TokenAllowDuplicate property.
You can add autocomplete suggestions for tokens using AssistedInputAdd.
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: 06/22/2023

Send a report | Local help