Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filling sequential data in a FlexGrid, not starting at 0,0

Status
Not open for further replies.

Quehay

Programmer
Feb 6, 2000
804
0
0
US
I'm working on a project (a classroom exercise) that requires constructing a calendar on MS FlexGrid. This is a make-work project, but the skills will transfer to other contexts.<br>
I've got a select case to handle combobox selection of month and code that will give the vbDay for the first of the month and enter numeral on grid. How can I fill the sequential date data starting from the 2nd day of the month?--the location is always different and never at 0,0. If there is a way to address the cells' x,y coordinates in a multidim array type fashion I haven't yet figured it out. The ideal solution would go from, e.g., (1,3).text = &quot;1&quot; (Wed, March 1) to (5,5) Fri, March 31 (The &quot;0&quot; row is dedicated to day headers.)<br>
<br>
Being able to assign a single dimension index number to the grid squares would also work, e.g. 5 X 5 grid having #'s 0 to 24, etc.
 
Try<br>
<br>
MSFlexGrid1.Textmatrix(1,1) = &quot;some string&quot;<br>
<br>
There's also something called textarray, and if you need a little extra speed updating the grid it might be worth looking at. Might.<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top