I was wondering why does it give string as a key in the dictionary. How to insert variable to the dictionary as a key. Would really appreciate your help guys!!
Code: Select all
#z::
mainData := {}
tempAcc := 8696796666666
tempBookingDate := "booking date 1"
tempAmount := "amount 100"
if !mainData.haskey(tempAcc)
{
row := 1
mainData.insert(tempAcc, {row : [tempBookingDate, tempAmount]})
}
for account, accountRowData in mainData
{
msgbox, % account
for row, rowData in accountRowData
{
MsgBox, % "row: " row
for index, rowListData in rowData
{
msgbox, % "data in Row: " rowListData
}
}
}
return