Search the Community
Showing results for tags '2d array'.
Found 8 results
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
Hello, I wonder if there is a better way than this!: #include <Array.au3> Local $aArray $aArray = 1 $aArray = 2 $aArray = 3 ;$aArray = [1, 2, 3] _ArrayDisplay($aArray)IIRC line no. 9 should work, but its not Thanks in Advance, TD
File to and from 2D array
SnArF posted a topic in AutoIt Example ScriptsI 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.
2D array help
TThomasson posted a topic in AutoIt General Help and SupportHi 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
Little help with Array needed
Palestinian posted a topic in AutoIt General Help and SupportI'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
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
cyberbit posted a topic in AutoIt Example ScriptsNOTICE: 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
Redim 2d Array, Wath's wrong?
golfinhu posted a topic in AutoIt General Help and SupportHey people, anyone helpme please? wath's wrong in this? #include <Array.au3> Dim $sArray = [[1,2,3,4,5]] _ArrayDisplay($sArray) ReDim $sArray = [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,2,3,4,5]] _ArrayDisplay($sArray) ;ReDim $sArray = [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