Jump to content

[Solved]_ArraySort()


 Share

Recommended Posts

The array is sorted but I cant access it anymore after it has been sorted. Array length is returned nothing. Have a look.

Global $var

#include <Array.au3>

    $var = WinList()

    _ArraySort($var)
    _ArrayDisplay($var, "AFTER _ArraySort() ascending" )    
    
    ConsoleWrite($var[0][0] & @CRLF)

    For $i = 1 to $var[0][0]
        ConsoleWrite($var[$i][0] & @CRLF)
    Next
Edited by goldenix
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

im not sure but the problem is probably the fact that WinList() returns a 2d array so you need to select the part you need to sort.

now it also use the length of the array in the sorting process.

So look at the arraysort function and make sure it starts from 1 instead of 0.

Link to comment
Share on other sites

im not sure but the problem is probably the fact that WinList() returns a 2d array so you need to select the part you need to sort.

now it also use the length of the array in the sorting process.

So look at the arraysort function and make sure it starts from 1 instead of 0.

Aha I see. This solves the problem: Thanx

_ArraySort($var,0,1)
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...