AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Sintaxis WLanguage / Operadores
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The & operator returns the address of a variable as an integer.
Ejemplo
i is int
z is string ASCIIZ on 50 
t is array of 10 reals
s is composed of 
	L_Age is int
	Le_Nom is string ASCIIZ on 50 
END
adr is int
adr = & i 
adr = & z 
adr = & z + 2			// Adresse du 3ème caractère de la chaîne 
adr = & t				// Adresse du début du tableau (donc du 1er élément) 
adr = & t[5]			// Adresse du 5ème élément 
adr = & s				// Adresse de la structure et donc de s.age
adr = & s.L_Age
adr = & s.Le_Nom
Sintaxis
<Result> = &<Variable Name>
<Result>: Integer
Address of the specified variable.
<Variable name>: Any type
Name of variable to use.
Observaciones
  • The & operator is used to find out the address of any type of variable (simple and composite variables).
  • The & operator is mainly used to pass addresses to API or CallDLL32.
  • The & operator cannot be used to retrieve the address:
    • of a control,
    • an HFSQL section.
      The & operator displays an error then when compiling the project. Indeed, the addresses of these two elements may change at any time.
  • If a "String" is to be passed by address to function API or CallDLL32, don't use a String variable: the string address can change at any time.. we recommend that you use the ASCIIZ String type.
  • If the variable is a local variable, the value returned by the & operator must only be used in the process where the variable was declared. When the current process is ended, the address will be invalid and it must not be used anymore.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/09/2024

Señalar un error o enviar una sugerencia | Ayuda local