Jump to content

Search the Community

Showing results for tags '2D Array'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 8 results

  1. Hello, I'm trying to make a program that can look at a folder directory, find all the CSV files, and then add the data from CSV's to an array. The problem I seem to be running into is on the 2nd iteration (2nd file) when the script will not create an array. Could someone please help? Thanks in advance #include <Array.au3> #include <File.au3> #include <MsgBoxConstants.au3> #include <Excel.au3> #include <MsgBoxConstants.au3> Global $MasterArray RefineData() Func RefineData() Local $i, $filenum, $file, $csvArray, $sFilePa
  2. Hello, I wonder if there is a better way than this!: #include <Array.au3> Local $aArray[1][3] $aArray[0][0] = 1 $aArray[0][1] = 2 $aArray[0][2] = 3 ;$aArray[0] = [1, 2, 3] _ArrayDisplay($aArray)IIRC line no. 9 should work, but its not Thanks in Advance, TD
  3. I always use _FileWriteFromArray2D written by Universalist, but the script is slow and almost useless if the file contains more then 5000 rows. Thats why I've made _FileFromArray2D and co-function _FileToArray2D. If you have a file containing 30000 rows, _FileReadToArray2D takes about 1 hour to create the 2D Array _FileToArray2D can do it in a few seconds. There are some extra options in _FileToArray2D, a positive endrow number stops importing at fileline number in file, a negative value will import startrow + nr off rows. The script needs some error handling, so feel free to post it here.
  4. Hi everyone. New guy here. I'm still learning this awesome language and I'm unable to figure this one out from google searches. Heres my problem: I'm working on a small application to help users in my environment connect to wireless projectors. To keep this easily updated with new projectors I'm reading the room names and IP addresses from a csv file and putting them into a 2D array. (MeetingRoom1,xxx.xxx.xxx.xxx) So far I'm able to read the 0 column and display the room names in a combo box. Where I am stuck is how to take the user's room selection from the gui and associate it with an IP add
  5. I've been working on a program for a while now to help me with my job in data entry, I'm facing one last issue and I think using an Array might just do the job. Most of the data I work with contains 1 medical code "example: E11", I made 2 input boxes in my program one for the letter and the 2nd for the number, sometimes i get cases with +2 medical codes, I want a way to put as many medical codes as needed before I run the program. A little more explanation: I get a case with 1 medical code, i enter it in my program then run it, the program then enters the needed information plus that cod
  6. This script is fairly straightforward. If you ever worked with large files before then this may be of help. By large I mean files of 2 MB or so. Granted this doesn't sound so big but going through the file and parsing it to a 2D array all at once took an astronomical amount of time so I wrote my own function to handle this. I discovered that chunking a large array can boost the performance of iterating through the elements and theoretically this should maintain the performance no matter how large the array size is. I know there is room for improvement so please feel free to contribute! Note
  7. NOTICE: The most current update contains script-breaking changes! The function now works exactly like _ArrayConcatenate. It does not return a value, but sets the parent array as the concatenated array. I know there's examples of this, but I thought I share this one with you. It's fully commented to aid those learning the language. Supports vertical and horizontal merging. There's minimal explicit variables by design. Not very elegant, but it works. One advantage this method has is zero dependencies. The dependencies in the download are for the example. EDIT: Updated script to UDF standar
  8. Hey people, anyone helpme please? wath's wrong in this? #include <Array.au3> Dim $sArray[1][5] = [[1,2,3,4,5]] _ArrayDisplay($sArray) ReDim $sArray[2][5] = [2,3,4,5,6] _ArrayDisplay($sArray) how to i redim one array, and add another array in this (to use it as columns) #include <Array.au3> Dim $sArray[1][5] = [[1,2,3,4,5]] _ArrayDisplay($sArray) ;ReDim $sArray[2][5] = [2,3,4,5,6] ;_ArrayDisplay($sArray) this works fine, but i can't redim and add another itens as columns =S i know i use a loop to add items such as columns, but much more work would ... i think it can
×
×
  • Create New...