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 TokenAllowDuplicate property is used to:
  • Allow or prevent the user from entering duplicates in a "Text token" Edit control.
  • Determine if duplicates are allowed in a "Text token" Edit control.
Example
IF CBOX_Duplicates THEN
EDT_Email.TokenAllowDuplicate = True
ELSE
EDT_Email.TokenAllowDuplicate = False
END
Syntax

Determine if duplicates are allowed in a "Text token" Edit control Hide the details

<Result> = <Edit control>.TokenAllowDuplicate
<Result>: Boolean
  • True if duplicates are allowed,
  • False otherwise.
<Edit control>: Control name
Name of the Edit control used.

Authorizing duplicates (or not) in a "Text token" Edit control Hide the details

<Edit control>.TokenAllowDuplicate = <Authorization>
<Edit control>: Control name
Name of the Edit control used.
<Authorization>: Boolean
  • True if duplicates are 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 TokenAllowDuplicate property is set to False (default):
    • adding a token with the same stored value triggers a non-fatal error in EditAddToken and EditInsertToken.
    • when entering characters directly into the control, the addition of a token with the same stored value is not taken into account: the input does not become a token.
  • If the TokenAllowDuplicate property is set to True, the same token can be added multiple times.
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