Yep its me again, I have set up my next code and it will not bring back an answer, could cast your eye over for me..?
There are three combo's with exactly the same choices as before... 1,2 or 3
Code: Select all
local theArray
on menuPick pThePick
if theArray is empty then
setupArray
end if
put the menuHistory of button "combo1" & comma & the menuHistory of button "combo2" & the menuHistory of button "combo3" into theIndex
put theArray[theIndex] into field "outField"
end menuPick
command setupArray
put "H,M,L,M" into theArray["1,1,1"]
put "M,L,H,M" into theArray["1,2,3"]
put "L,H,M,H" into theArray["1,2,2"]
put "L,M,M,H" into theArray["1,3,3"]
put "H,L,M,H" into theArray["1,3,2"]
put "H,M,M,L" into theArray["1,1,2"]
put "M,L,H,L" into theArray["1,2,1"]
put "M,H,L,H" into theArray["1,3,1"]
put "L,M,L,H" into theArray["1,1,3"]
put "L,H,L,M" into theArray["2,2,2"]
put "M,L,H,H" into theArray["2,3,2"]
put "L,M,H,M" into theArray["2,1,2"]
put "L,L,M,H" into theArray["2,1,1"]
put "M,H,M,L" into theArray["2,3,3"]
put "L,H,M,H" into theArray["2,2,3"]
put "H,L,H,M" into theArray["2,2,1"]
put "H,M,M,L" into theArray["2,3,1"]
put "H,L,L,M" into theArray["2,1,3"]
put "M,H,L,M" into theArray["3,3,3"]
put "L,L,H,M" into theArray["3,2,3"]
put "L,L,M,H" into theArray["3,1,3"]
put "H,M,M,L" into theArray["3,3,2"]
put "L,H,H,M" into theArray["3,2,2"]
put "L,M,H,M" into theArray["3,1,2"]
put "H,M,L,M" into theArray["3,1,1"]
put "H,L,L,M" into theArray["3,2,1"]
put "M,M,H,L" into theArray["3,3,1"]
end setupArray
Is it because the entry is digits and the answer is letters..? If so do need write a little handler to tranlate between the two..??