Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created August 29, 2022 16:47
Show Gist options
  • Save JoeGlines/527bd37d489944926baefac9c9673933 to your computer and use it in GitHub Desktop.
Save JoeGlines/527bd37d489944926baefac9c9673933 to your computer and use it in GitHub Desktop.
data=
(
one two three
one two 3
two two 4
three two 6
)
;*********Use For loop over Var going line by line*********************
for i, row in Loopobj:=StrSplit(data,"`n","`r`n") { ;Parse Var on each new line
IfEqual, i,1,continue ;Skip header row
sum += StrSplit(row,"`t").3 ;Change this to the index where your number is (looks like 7 is for your data)
}
MsgBox % sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment