PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Inserts a token into a "Text token" edit control.
Example
// Click [Insert the test robot]
EditInsertToken(EDT_Recipient, 1, "ROBOT", "robotmail@address.test.com")
// Syntax using the Token type
MyToken is Token
MyToken..DisplayedValue = "ROBOT"
MyToken..StoredValue = "robotmail@address.test.com"
EditInsertToken(EDT_Recipient, 1, MyToken)
Syntax

Inserting a token directly Hide the details

<Result> = EditInsertToken(<Edit control> , <Position> , <Value> [, <Caption>])
<Result>: Integer
  • Real subscript of the inserted token,
  • 0 if an error occurred:
<Edit control>: Control name
Name of the "Text token" edit control.
<Position>: Integer
Token insertion subscript.
  • If <Position> is greater than the number of tokens in the control, the token is added at the end of the existing tokens (EditAddToken).
  • If <Position> is set to 0, the token is added at the beginning.
  • If <Position> is set to -1, <Result> is 0.
<Value>: Character string (with quotes)
Value of the token.
<Caption>: Optional character string (with quotes)
Caption of the token. If this value is not specified, it will correspond to the value of the token.

Inserting a token via the Token type Hide the details

<Result> = EditInsertToken(<Edit control> , <Position> , <Token>)
<Result>: Integer
  • Real subscript of the inserted token,
  • 0 if an error occurred:
<Edit control>: Control name
Name of the "Text token" edit control.
<Position>: Integer
Token insertion subscript.
  • If <Position> is greater than the number of tokens in the control, the token is added at the end of the existing tokens (EditAddToken).
  • If <Position> is set to 0, the token is added at the beginning.
  • If <Position> is set to -1, <Result> is 0.
<Token>: Token variable
Name of the Token WLanguage variable that describes the token to add.
Remarks
  • To add a token at the cursor position, use EditAddToken.
  • The edit control ..StoredValue property returns the stored values for the tokens, separated by the characters <CR> (Carriage Return).
Component : wd240obj.dll
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment