Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CreateNamedTable(TableName) {
- %TableName%Table := clipboard
- %TableName%Table := StrSplit(%TableName%Table, "`n", "`r") ; Split the table into rows
- for i, Row in %TableName%Table
- %TableName%Table[i] := StrSplit(Row, A_Tab) ; Split the rows into columns
- ;MsgBox, % Table[4, 5] ; Shows the value at row 2, column 3
- ;MsgBox, % Table.MaxIndex() - 1 ; Shows the total number of rows
- ;MsgBox, % Table.2.MaxIndex() ; Shows the number of columns in row 2
- Return
- }
- ^3::
- InputBox, UserInput, Table-Name, Table to fetch
- CreateNamedTable(UserInput)
- ;MsgBox, % dsaTable[4, 5] <--
- MsgBox, % %UserInput%Table[4, 5] ; Shows the value at row 2, column 3
- MsgBox, % %UserInput%Table.MaxIndex() - 1 ; Shows the total number of rows
- MsgBox, % %UserInput%Table.2.MaxIndex() ; Shows the number of columns in row 2
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement