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

determine numbers in a 80 number msflexgrid

$
0
0
Name:  80 number grid.jpg
Views: 83
Size:  70.6 KBI am saving an array of upto 10 numbers to a file the numbers in the array are saved
based on the .cellforecolor in a 80 number msflexgrid
I am trying to deterime how to set the cell images based on the numbers in an array
the array is declared like this
Dim mMarkedNumber(1 To 10) As Integer
the array holds as many as 10 numbers
example array
1 = 1
2 = 5
3 = 10
4 = 21
5 = 26
6 = 46
7 = 50
8 = 71
9 = 76
10 = 80

columns = 0 To 9
rows = 0 To 7
The problem I am having is determing which number in the msflexgrid matches the number in the array.
Example 4th dimintion = 21
how can i write code to determine which number in the 80 number grid is number 21
flexCleo.row = 2
flexCleo.col = 0
Set .CellPicture = imgSelNotHit
this will select number 21

How can i write this?
Attached Images
 

Viewing all articles
Browse latest Browse all 21426


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