for digit = 0 to 6
lookup digit,(4,5,9,10,6,2,3), portb

I know you can put the number in a var but can you "stick" on portb this way?

Thanks, Don