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:
parent
f0f149e1c9
commit
98ec36cd5c
4
func.ahk
4
func.ahk
@ -29,7 +29,7 @@ GetInfo(xID) ; Accept what is passed here as the variable "xID" in the script
|
|||||||
{
|
{
|
||||||
if (xID)
|
if (xID)
|
||||||
{
|
{
|
||||||
csv := FileOpen(A_MyDocuments "\Work_Docs\emails-test.csv", "r")
|
csv := FileOpen(A_MyDocuments "\Work_Docs\emails.csv", "r")
|
||||||
Loop {
|
Loop {
|
||||||
ReadLine := csv.ReadLine()
|
ReadLine := csv.ReadLine()
|
||||||
Array := StrSplit(ReadLine,",")
|
Array := StrSplit(ReadLine,",")
|
||||||
@ -45,7 +45,7 @@ SetInfo(xID, column, value)
|
|||||||
StringUpper, xID, xID ;just to make sure
|
StringUpper, xID, xID ;just to make sure
|
||||||
if (xID)
|
if (xID)
|
||||||
{
|
{
|
||||||
csv := FileOpen(A_MyDocuments "\Work_Docs\emails-test.csv", "r")
|
csv := FileOpen(A_MyDocuments "\Work_Docs\emails.csv", "r")
|
||||||
Array := []
|
Array := []
|
||||||
Dealinfo := []
|
Dealinfo := []
|
||||||
Loop {
|
Loop {
|
||||||
|
Loading…
Reference in New Issue
Block a user