Solved

Arrays

Posted on 1998-09-19
4
162 Views
Last Modified: 2010-04-30
I have a form as follows.
The top row headings are periods(9am-10am,10am-11-am ..... upto 4pm-5pm).
in the column headings i have my various activities or meetings should vary.
i want a grid say 9x6 to record whther any cell of this grid ocupied or not. i think arrays will do it, but i cant even start it. I am Using VB5.

thanks
0
Comment
Question by:abidsml
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
wj7ster earned 40 total points
ID: 1435659
You can create a multi-dimensional array variable as follows:

Dim MyMeetings(0 to 8, 0 to 5)     As String

  MyMeetings(0,0) = "Some Value"
  MyMeetings(0,1) = "Another Value"
  ' ...etc

I presume the 9x6 array is for 9 hours/day for 6 days.

If you want to refer then to the 10am-11am meeting on the 3rd day, you can use:

  Meet$ = MyMeetings(1,2) ' because the array is 0 indexed, starting from 0 to n-1.


0
 

Author Comment

by:abidsml
ID: 1435660
THANKS,
ACTUALY THE GRID FOR ONE DAY ONLY, HORIZ-HRS, vERT. ACTIVITIES.
hOW CAN I SAVE THE CONTENTS TO A FILE AND RETRIEVE THEM FOR A PARTICULAR DATE SERCH.
0
 

Author Comment

by:abidsml
ID: 1435661
hi, i wish u can guide me to complete this in simple steps
0
 

Author Comment

by:abidsml
ID: 1435662
hi, please send me your email, i will email you exactly what i want. my email is sml41@hotmail.com
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question