Solved

Arrays

Posted on 1998-09-19
4
159 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now