PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

¡Nueva funcionalidad WINDEV, WEBDEV, WINDEV Mobile 24!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
EditInsertToken (Function)
 
Inserts a token into a "Text token" edit control.
Ejemplo
// 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)
Sintaxis

Inserting a token directly Ocultar los detalles

<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 Ocultar los detalles

<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.
Observaciones
  • To add a token at the cursor position, use EditAddToken.
  • La ..StoredValue propiedad edit control devuelve los valores almacenados para los tokens, separados por los caracteres <CR> (Carriage Return).
Componente : wd240obj.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario