Recognizing straights:
Instead of do val="2","3",..... "K","A", why not make all the values into numbers, as in do val=2 to 14 If you want to see the letters J, Q, K, and A then just apply a format to val.
Let's say you have your hand recorded in 5 variables: card1 through card5, and define array crd{5} card1-card5 Then for a straight I believe it is sufficient if
range(of crd{*})=4 and
var(of crd{*})=2.5
... View more