467,880 Members | 1,095 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,880 developers. It's quick & easy.

VB5 help

hi, i'm a student and i'm doing a program in VB5. It should allow the user to input an ID and then choose a seat(an a plane). But if one user chooses seat 3 for example the next user shouldn't be able to choose it. I.e Error message. I can validate the ID using an array and linear search but i have no idea how to stop two people from choosing the same seat.
Any help would be great

TitanHQ
Nov 23 '06 #1
  • viewed: 1331
Share:
1 Reply
Expert 8TB
hi, i'm a student and i'm doing a program in VB5. It should allow the user to input an ID and then choose a seat(an a plane). But if one user chooses seat 3 for example the next user shouldn't be able to choose it. I.e Error message. I can validate the ID using an array and linear search but i have no idea how to stop two people from choosing the same seat.
Have you learned how to do any file access yet?

Probably the simplest thing would be to write out the selected seats to a text file. Before doing so, read the file and see wether anyone has beat you to it.
Nov 24 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by wukexin | last post: by
3 posts views Thread by Colin J. Williams | last post: by
7 posts views Thread by Corepaul | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.