ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Token functions
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
Returns the number of tokens present in a "Text token" Edit control.
Example
// Update the caption
STC_Info = "Number of recipient: " + EditTokenCount(EDT_Recipient)
Syntax
<Result> = EditTokenCount(<Edit control>)
<Result>: Integer
Number of tokens associated with the Edit control.
<Edit control>: Control name
Name of the "Text token" Edit control.
Remarks
  • If duplicates are allowed in the "Text token" Edit control, they will be included in the number of tokens returned.
  • An error is displayed if the Edit control is not a "Text token" Edit control (TokenEnabled property is False).
  • The edit control StoredValue property returns the stored values for the tokens, separated by the characters <CR> (Carriage Return).
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.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/08/2024

Send a report | Local help