PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Reverses the content of a one-dimensional array.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVJava This function is now available for Java applications.
New in version 22
WINDEVJava This function is now available for Java applications.
WINDEVJava This function is now available for Java applications.
Example
arrAscendingArray is array of int
arrAscendingArray = [1,2,3,4,5,6,7,8,9,10]
// Reverses the array content
ArrayReverse(arrAscendingArray)
// The array contains [10,9,8,7,6,5,4,3,2,1]
Syntax
ArrayReverse(<WLanguage array>)
<WLanguage array>: Array
Name of the array variable to reverse. If this array contains several dimensions, only the first dimension is reversed.
Remarks
This function can be used on the associative arrays.
Component : wd240vm.dll
Minimum required version
  • Version 18
This page is also available for…
Comments
VOU ENSINAR COMO USAR O ARRAYREVERSE
VOU ENSINAR COMO USAR O ARRAYREVERSE

array_ordem is array of string
array_ordem = [1,2,3]
ArrayReverse(array_ordem)
FOR EACH _NUMERO OF array_ordem
Trace(_NUMERO)
END


// BLOG COM VIDEO E EXEMPLO

http://windevdesenvolvimento.blogspot.com.br/2017/06/aula-1185-cursowindev-011-array-aula.html

https://www.youtube.com/watch?v=-0wyUnTsAXk


De matos
Jun. 23 2017