PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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 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 value):
    • 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