VB6 need help with records
Any help on where to get started or links to websites will be really good. I know most people dont like helping people with assignments but im struggling i know i need to make a program so it makes a record where it stores the passengers name etc but im a little confused :confused:
Hawker Airlines needs an application which will record flight bookings for their service from Canberra to Albury. This service operates three times a week – Monday, Wednesday and Friday. Their aircaft seats 30 passengers with twin seats on one side and single seats on the other side.
The program will need to be able to:
Allocate a person to a particular seat and record their name
Allow for bookings and cancellations
Save all information for later use
Give information about available seats within the current week
The screen design should be simple and uncluttered.
There should be NO command buttons on the screen. User access to options should be through a menu bar and toolbar.
Thanks for any help
Re: VB6 need help with records
What coding do you have so far? We aren't going to do your homework.
Re: VB6 need help with records
i haven't started writing any code as i said in my post before, i just would like some suggestions or links to sites that help with records. so i need to have a record that i can add and delete passenegers.
Re: VB6 need help with records
There are several definitions of a "record", and there is a very good chance that whatever we show you will be the wrong kind (so our time is wasted, and if you follow it you may get into trouble).
You wouldn't have been given this assignment if you hadn't been taught enough to at least make a decent attempt at it... so give it a go, and then ask us for more specific help (such as "I have the following code, why does it give me this error?").
Re: VB6 need help with records
I agree, shouldn't you have been taught how to do these types of things? How are you confused?
Re: VB6 need help with records
can some one explain what this is doing
Code:
Open "a:\results.dat" For Random As 1 Len (Student)
Re: VB6 need help with records
If you click on the word Open and press F1, you will see an explanation of what each section means, and examples too.
In simple terms.. it is opening a file ("a:\results.dat"), and giving it the reference '1' (which you will use in other code to work with that file).
It is being opened in Random mode, which means the data is stored using a particular structure (or 'Record', in terms of files!), and you will be able to read a whole record at a time. The last part ( Len(Student) ) says what size these structures are.