PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of Token variables
  • Handling tokens
  • Functions that use the Token type
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 Token type is used to define all the advanced characteristics of a token displayed in an edit control. The characteristics of this token can be defined and modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
WEBDEV - Browser code The Token type is only available in the V2 framework.
Example
// Add a token into an edit control
MyToken is Token
MyToken..Caption = Customer.Name
MyToken..Value = Customer.IdCustomer
EditAddToken(EDT_Customer, MyToken)
 
// Modify the background color of a token
FOR EACH MyToken OF EDT_Customer..Token
IF MyToken..Value = Customer.IdCustomer THEN
MyToken..BackgroundColor = LightRed
END
END
Remarks

Properties specific to the description of Token variables

The following properties can be used to handle a token:
Property nameType usedEffect
TooltipCharacter stringTooltip displayed when hovering over the token.
ColorColor variableColor of the token text.
WEBDEV - Server codeWEBDEV - Browser codePHP Remark: This color can be ignored if the property ..CaptionHTML contains text color indications.
BackgroundColorColor variableBackground color of the token.
WEBDEV - Server codeWEBDEV - Browser codePHP Remark: This color can be ignored if the property ..CaptionHTML contains background color indications.
CaptionCharacter stringCaption of the token as it will be displayed in the edit control. If this property is not specified, the caption of the token will correspond to its stored value.
WEBDEV - Server codeWEBDEV - Browser codePHP Remark: This information can be ignored if the property ..CaptionHTML is specified.
WEBDEV - Server codeWEBDEV - Browser codePHP CaptionHTML
Character stringHTML code for the caption of the token as it will be displayed in the edit control. If this property is not specified, the caption specified with the property ..Caption is used.
ValueCharacter stringStored value of the token.


Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

Handling tokens

  • To handle the tokens of an edit control, it is possible to use:
  • To reset the content of a Token variable, you can use VariableReset.

Functions that use the Token type

The following functions handle Token variables:
Versions 24 and later
EditAddToken
New in version 24
EditAddToken
EditAddToken
Adds a token to into a "Text token" edit control.
Versions 24 and later
EditInsertToken
New in version 24
EditInsertToken
EditInsertToken
Inserts a token into a "Text token" edit control.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment