Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CreateNamedTable(TableName) {
  2.     %TableName%Table := clipboard
  3.     %TableName%Table := StrSplit(%TableName%Table, "`n", "`r")    ; Split the table into rows
  4.     for i, Row in %TableName%Table
  5.         %TableName%Table[i] := StrSplit(Row, A_Tab)      ; Split the rows into columns
  6.  
  7.     ;MsgBox, % Table[4, 5]                   ; Shows the value at row 2, column 3
  8.     ;MsgBox, % Table.MaxIndex() - 1             ; Shows the total number of rows
  9.     ;MsgBox, % Table.2.MaxIndex()            ; Shows the number of columns in row 2
  10.     Return
  11. }
  12.  
  13. ^3::
  14.     InputBox, UserInput, Table-Name, Table to fetch
  15.     CreateNamedTable(UserInput)
  16.     ;MsgBox, % dsaTable[4, 5] <--
  17.     MsgBox, % %UserInput%Table[4, 5]                   ; Shows the value at row 2, column 3
  18.     MsgBox, % %UserInput%Table.MaxIndex() - 1             ; Shows the total number of rows
  19.     MsgBox, % %UserInput%Table.2.MaxIndex()            ; Shows the number of columns in row 2
  20. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement