Ordenar solo una parte de un array

Ordenar solo una parte de un array

Postby goosfancito » Thu Feb 25, 2021 9:42 pm

hola.

Puedo indicarle con aSort que ordene un sector del array? como ser de la posicion 6 a la 10 ?

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: Ordenar solo una parte de un array

Postby hmpaquito » Thu Feb 25, 2021 9:58 pm

ASort()
Posted on January 7, 2014 by vivaclipper


ASORT()
Sort an array

Syntax

ASORT( <aArray>, [<nStart>], [<nCount>], [<bSort>] ) --> aArray
Arguments

<aArray> Array to be sorted.

<nStart> The first element to start the sort from, default is 1.

<nCount> Number of elements starting from <nStart> to sort, default is all elements.

<bSort> Code block for sorting order, default is ascending order {| x, y | x < y }. The code block should accept two parameters and must return .T. if the sort is in order, .F. if not.
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Ordenar solo una parte de un array

Postby goosfancito » Thu Feb 25, 2021 10:02 pm

gracias
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 56 guests