Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

Calculate the row number

$
0
0
I have a matrix of 64 squares arranged 8 x 8. The square in the lower left corner is #1 and the square in the upper right corner is #64

How do I calculate the row number when any square is clicked on?

Example, if I click on square 21 how to calculate that it is in row 3

Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>