Coder Social home page Coder Social logo

csv.ahk's Introduction

CSV - AutoHotkey library for working with CSV Files

This CSV library was developed by trueski and Kdoske - the original source can be found here http://www.autohotkey.com/forum/viewtopic.php?p=329126#329126 and https://autohotkey.com/board/topic/51681-csv-library-lib/ (archived forum links, the code posted there is no longer valid due to errors caused by upgrading the forum software.)

This version includes bugfixes from:

and incorporated in this library are:

CSV Functions

  • CSV_Load(FileName, CSV_Identifier, Delimiter) ; Load CSV file into memory, must complete first.
  • CSV_TotalRows(CSV_Identifier) ; Return total number of rows
  • CSV_TotalCols(CSV_Identifier) ; Return total number of columns
  • CSV_Delimiter(CSV_Identifier) ; Return the delimiter used
  • CSV_FileName(CSV_Identifier) ; Return the filename
  • CSV_Path(CSV_Identifier) ; Return the path
  • CSV_FileNamePath(CSV_Identifier) ; Return the filename with the full path
  • CSV_Save(FileName, CSV_Identifier, OverWrite?) ; Save CSV file
  • CSV_DeleteRow(CSV_Identifier, RowNumber) ; Delete a row
  • CSV_AddRow(CSV_Identifier, "Cell1,Cell2...") ; Add a row
  • CSV_DeleteColumn(CSV_Identifier, ColNumber) ; Delete a column
  • CSV_AddColumn(CSV_Identifier, "Cell1,Cell2...") ; Add a column
  • CSV_ModifyCell(CSV_Identifier, NewValue,Row, Col) ; Modify an existing cell
  • CSV_ModifyRow(CSV_Identifier, "NewValue1,NewValue2...", RowNumber) ; Modify an existing row
  • CSV_ModifyColumn(CSV_Identifier, "NewValue1,NewValue2...", ColNumber)) ; Modify an existing column
  • CSV_Search(CSV_Identifier, SearchText, Instance) ; Search for text within
  • CSV_SearchRow(CSV_Identifier, SearchText, RowNumber, Instance) ; Search for text within a cell within a specific row
  • CSV_SearchColumn(CSV_Identifier, SearchText, ColNumber, Instance) ; Search for text within a cell within a specific column
  • CSV_MatchCell(CSV_Identifier, SearchText, Instance) ; Search for a cell containing exactly the data specified
  • CSV_MatchCellColumn(CSV_Identifier, SearchText, ColNumber, Instance=1) ; Search for a cell containing exactly the data specified in a specific column
  • CSV_MatchCellRow(CSV_Identifier, SearchText, RowNumber, Instance=1) ; Search for a cell containing exactly the data specified in a specific row
  • CSV_MatchRow(CSV_Identifier, "SearchText1,SearchText2", Instance) ; Search for a row containing exactly the data specified
  • CSV_MatchCol(CSV_Identifier, "SearchText1, SearchText2", Instance) ; Search for a column containing exactly the data specified
  • CSV_ReadCell(CSV_Identifier, Row, Column) ; Read data from the specified cell
  • CSV_ReadRow(CSV_Identifier, RowNumber) ; Read data from the specified row
  • CSV_ReadCol(CSV_Identifier, ColNumber) ; Read data from the specified column
  • CSV_LVLoad(CSV_Identifier, Gui, x, y, w, h, header, Sort?, RowIdentification?, AutoAdjustCol?) ; Load data into a listview in the specified gui window, listviewname variablewill equal "CSV_Identifier"
  • CSV_LVSave(FileName, CSV_Identifier, Delimiter, OverWrite?, Gui) ; Save the specified listview as a CSV file, CSV_Identifier is the ListView's associated variable name.

AutoHotkey forum discussion

https://autohotkey.com/boards/viewtopic.php?f=6&t=34853

csv.ahk's People

Contributors

hi5 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.