Results 1 to 7 of 7

Thread: VB6 need help with records

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    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

    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

  2. #2
    Fanatic Member
    Join Date
    Jun 2006
    Posts
    615

    Re: VB6 need help with records

    What coding do you have so far? We aren't going to do your homework.
    If ive helped, RATE my post.

    If your thread is solved, and you got your answer, mark this thread Resolved.

    There is no other forum like VBFORUMS.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    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.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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?").
    Last edited by si_the_geek; Jun 15th, 2008 at 01:11 PM.

  5. #5
    Fanatic Member
    Join Date
    Jun 2006
    Posts
    615

    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?
    If ive helped, RATE my post.

    If your thread is solved, and you got your answer, mark this thread Resolved.

    There is no other forum like VBFORUMS.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    3

    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)

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width