PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
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
..TokenAllowDuplicate allows:
  • Authorizing (or not) the input of duplicates in a "Text token" edit control.
  • Finding out 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

Finding out 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 ..TokenEnabled is False.
  • If ..TokenAllowDuplicate is False (value by 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 ..TokenAllowDuplicate is True, the same token can be added several times.
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment