?
Solved

Arrays

Posted on 1998-09-19
4
Medium Priority
?
165 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 80 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

777 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