Solved

Arrays

Posted on 1998-09-19
4
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

688 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