New way to process emails.csv

updated the function to use an object instead of just reading lines, added a function to write to the csv as well so I can update it without manually modifying it
This commit is contained in:
David Daily 2020-01-23 06:08:29 -06:00
parent f0f149e1c9
commit 98ec36cd5c

View File

@ -29,7 +29,7 @@ GetInfo(xID) ; Accept what is passed here as the variable "xID" in the script
{
if (xID)
{
csv := FileOpen(A_MyDocuments "\Work_Docs\emails-test.csv", "r")
csv := FileOpen(A_MyDocuments "\Work_Docs\emails.csv", "r")
Loop {
ReadLine := csv.ReadLine()
Array := StrSplit(ReadLine,",")
@ -45,7 +45,7 @@ SetInfo(xID, column, value)
StringUpper, xID, xID ;just to make sure
if (xID)
{
csv := FileOpen(A_MyDocuments "\Work_Docs\emails-test.csv", "r")
csv := FileOpen(A_MyDocuments "\Work_Docs\emails.csv", "r")
Array := []
Dealinfo := []
Loop {