ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The ByAddress property is used to determine if a procedure parameter was passed by address.
If the parameter was passed by address, its value can be modified in the procedure code.
Remarks:
  • This property is equivalent to the ByReference property.
  • The concepts "Parameter pass by reference" and "Parameter pass by address" are identical.
WEBDEV - Browser code This property is available only if the new WLanguage framework is enabled. For more details, see Browser code (WLanguage): Framework 2.
Example
Indice is int = 1
Indice2 is int = 3
Indice3 is int = 4
// Avant l'appel de la procédure, les différentes variables ont leurs valeurs par défaut
AjouteUn(Indice, Indice2, Indice3)
// Après l'appel de la procédure, les variables ont toutes changé de valeur
// -- Déclaration de la procédure
PROCEDURE AjouteUn(*)
FOR I = 1 _TO_ MyParameters.Occurrence
	IF MyParameters[I].ParAdresse = True THEN
		MyParameters[I] += 1
	END
END
Syntax
<Result> = <Parameter used>.ByAddress
<Result>: Boolean
  • True if the parameter was passed by address,
  • False otherwise.
<Parameter used>: Character string
Name of the parameter used. This parameter is defined via the MyParameters keyword, by specifying the index of the parameter used. For example: MyParameters[1] to manipulate the first parameter passed to the procedure.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help