Trouble reading in tab delimited data

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
omar
Posts: 545
Joined: 22 Oct 2015, 17:56

Trouble reading in tab delimited data

01 Oct 2023, 15:21

I need some help writing a some code to read in a tab separated data

I've tried this:

Code: Select all

spreadsheetdata_row := StrSplit(%Clipboard%, %A_Tab%)

MsgBox, % spreadsheetdata_row.3
And this:

Code: Select all

spreadsheetdata_row := StrSplit(%Clipboard%, A_Tab)

MsgBox, % spreadsheetdata_row.3
Neither work.

What am I doing wrong?

Thanks.
User avatar
andymbody
Posts: 996
Joined: 02 Jul 2017, 23:47

Re: Trouble reading in tab delimited data

01 Oct 2023, 15:27

omar wrote:
01 Oct 2023, 15:21
Neither work. What am I doing wrong?
Almost there. but this will give you COLUMN 3, not row 3

Code: Select all

str := "One`tTwo`tThree`tFour"
Clipboard := str
spreadsheetdata_COLUMN := StrSplit(Clipboard, A_Tab)
MsgBox, % spreadsheetdata_COLUMN.3
omar
Posts: 545
Joined: 22 Oct 2015, 17:56

Re: Trouble reading in tab delimited data

01 Oct 2023, 15:51

@andymbody Amazing :)
Thanks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], peter_ahk, Pianist and 307 guests