Professional Documents
Culture Documents
Hi Guys
Requirements
Add passengers
Request the passenger name, address, DOB, flight date
,flight cost, payment status and allocate an available seat
number
Cancel Reservation
Request the passengers name, address, DOB, Flight date and
make the canceled seat available
Thanks
See Related Forum Messages: Follow the Links Below to View Complete Thread
Airline Program
Hello, I am pretty new to visual basic and was wondering if you could help me with a program,
It's to display flight details and i was wondering if there is code to display the name taken from
the the I.D for exzample - wallacew468po1 would display the name as wallace, here is the code i
have so far
form - 1
option explicit
dim i_d
dim seat as integer
dim nme as string
do
i_d = inputbox("what is your I.D?")
if i_d = "wallacew468po1" or i_d = "lauderh48po2" or i_d = "carnegiea468po3" or i_d =
"scottw468po4" or i_d = "debruisr468po5" then
picdisplay.print "ID" ; i_d
end if
if i_d <> "wallacew468po1" or i_d <> "lauderh48po2" or i_d <> "carnegiea468po3" or i_d <>
"scottw468po4" or i_d <> "debruisr468po5" then msg box ("Please Re-enter your I.D")
end if
loop until i_d = i_d = "wallacew468po1" or i_d = "lauderh48po2" or i_d = "carnegiea468po3" or
i_d = "scottw468po4" or i_d = "debruisr468po5"
.........After this would be the code for the name which would have to be displayed in the
picturebox
cheers
Airline Program
Hello, I'm trying to create a program wich has one picture box, 2 input boxes and a start button,
The code is for an airline program which when you enter the i.d's of people into an input box the
i.d's should be displayed on screen unless the i.d's aren't there, it should also take the name from
the i.d's and display them in the picture box too, there is also there is another input box for the
seat number which should let a person enter a seat number between 1 and 5 and if higher than
this a message box will be displayed, This is the code I have so far, any help on improveing it
will be appricated
Dim i_d
Dim seat As Integer
Dim nme As String
Do
i_d = InputBox("What is your I.D?")
If i_d = "WallaceW468PO1" Or i_d = "LauderH48PO2" Or i_d = "CarnegieA468PO3" Or i_d =
"ScottW468PO4" Or i_d = "DeBruisR468PO5" Then
picdisplay.Print "ID"; i_d
End If
--in this section there should be code to display the name in the picture box which is taken from
th i.d for exzample ScottW468PO4 should display the name Scott.
Do
Dim counter(1 To 5)
seat = InputBox("What is your seat number?")
If seat < 6 And seat > 0 Then
picdisplay.Print "Seat Number"; seat
End If
End Sub
Thanks!!
Write a reservation system for an airline flight. Assume that the airplane has 10 rows with 4 seats
in each row. Use a two-dimensional array of strings to maintain a seating chart. In addition,
create an array to be used as a waiting list in case the plane is full. The waiting list should be
"first come. first served," that is people who are added early to the list get priority over those
added later.
reservation command accepts the name of the passenger and the seat requested. If the seat is
unavailable inform the passenger and allow user to choose another.
delete command accepts the name of the passenger, finds the seat and deletes the passengers
name.
The TEXT file contains passenger names in single lines, the "" are empty seats and PassName
are seats taken.
"PassName1"
"PassName2"
""
""
""
""
""
""
""
"PassName3"
""
""
""
""
""
""
""
""
""
""
""
"PassName4"
""
""
""
""
""
""
""
""
""
""
""
""
""
""
"PassNameC"
"PassNameO"
"PassNameD"
"PassNameE"
Form example:
passenger seating arrangement
1234
1 [ ]<------------------text box array
2
3
4
5
6
7
8
9
10
Reservation
i have just read the guidelines of use for this forum, and it is with reservation that i post this
thread im currently developing a program that allows a use to use the keyboard tocompletely
control his/hers pc. so i know it is normally used in trojen horses so i will understand if this
thread is removed or no 1 gives me the code. but i want to be able to open the cd-rom case thanks
and i am not a hacker or an extortionist or any other career criminal who blackens the name of us
programmers
thanks
Bus Reservation
Hi,
Is there any Existing/Trail software about Bus Ticketing System, Just want to see the demo,
before i start doing myself.
Any One?!
Jen
Reservation
Hi
am working on a hotel reservation project. I have two table for Customer and Room. I have a
form where i can add details of a customer to the database which works well. But the problem
comes when i want to make a reservation for a room. I do not know how to do this. Can
somebody just give me an idea of doing this all be gratefull
Reservation Form
Hi all,
This is urgent and hope you can help to take a look at my program and direct me how to source
the problem existed in the program.
At the moment now, whenever I updaed a new record, the custID, CarRegNo, datereturn and
daterent is not updated.]
http://s33.yousendit.com/d.aspx?id=3...P28HZSDZF7P6UL
Thanks.
Reservation Program
I have been trying to think up something to do for a long time now, to put my skills to use, cuz
all i do now is mess around with the controls and stuff but never finish or make anything useful.
So i decided to try and think of something that would test my knowlege of vb but and even
though it would just be for me it would have to have multiple forms and features, like a real app.
So anyways if you havent lost interest in this thread by now...
what i want to do is make a program that would be for a movie theater, where you can reserve
seats or just buy tickets, make sure you dont overbook, and such buy i also want it to be able to
do things like make charts of movie popularity, ticket sales and other stuff. So my question is,
what are some easy ways to do this? as for the seat reserving thing, could i just have a whole
buch of command buttons in a control array and an external file that has the data and it would
show which seats are taken and which arent, and you could modify the state by clicking on it. Is
there any easier way? also how would i go about making charts? can you even do that in vb?
This is urgent and hope you can help to take a look at my program and direct me how to source
the problem existed in the program.
At the moment now, whenever I updaed a new record, the custID, CarRegNo, datereturn and
daterent is not updated.
Code:
Application.UserName
Thanks
RB
File reservation
"dot.xls" is being modified by BigMB
Open as read only or choose notify to be alerted when it is available....
the date picker located upper left can scroll through the dates and the cells have a different
background color when they are vacant, reserved, etc
My main focus needs to be on utilizing Access but, I can use a bit of Visual Basic (6), which btw
I don't know how to use.
Thanks much.
I am making a Theatre online reservation seats system in VB and MS. Access backend.
Also the relativeness of the corner seats which lie in the four corner of the theatre is not possible
Can anyone help me out with this.
How can I show the seats on the screen as they actually are in a theatre.
this my project all about hotel billing and reservation system i want to have a word of
wisdom with to help me to code the following:
Grand Total__________
Tax have 10% discount if goverment employee
i need this red shap to be displayed as shapes with table numbers ( from the database ) till the
database tables table is end.
in short : fetch data in tables shapes beside each other with the number of table
thank you
sql = "select [Room Number]from Rooms Where [Room Number] Not In"
sql = sql & "(SELECT [Room Number] FROM Bookings WHERE abs("
sql = sql & "Sgn(DateDiff('d', [Date from], 'Me.txtArriveDate.Text'))+ "
sql = sql & "Sgn(DateDiff('d', [Date To], 'Me.txtArriveDate.Text')) + "
sql = sql & "Sgn(DateDiff('d', [Date From],'Me.txtDepartDate.Text'))+ "
sql = sql & "Sgn(DateDiff('d', [Date To],'Me.txtDepartDate.Text'))"
sql = sql & "<>4"
Me.lblRoomSelected.Caption = sql
I cant seem to display in my label the results of available rooms (room table )based on an arrival
and depart date (booking table) of my database
Compiling VB Project With A Reference From The Project In The Command Prompt
Hi,
I need to make DLL from a VB project(in which a reference is added to a type library) in the
command prompt using VB6.exe and /m properties.
My scenario : I have opened the project in a machine(using VB editor) and added the
reference(type library) and then saved the project.
Then I took the .vbp and .cls along with referred .tlb file(in the current dir where my .vbp and
.cls files exists) to another machine and tried the below :
VB6.exe /m VBTest.vbp
But it throws the error that the tlb reference(giving the referred tlb file name) is not found
Please advise how to compile a project which refers a tlb from command prompt. Is there
anyway by which I can say the reference in the command prompt ?
Thanks,
Shiv
In my AddIn Project,
I just want to write the code pane adding VB Components (ie. Microsoft Windows Common
Controls-2.6.0 (SP4) or in other word "MSCOMCT2.OCX") to an active project which is at
design-time to be able to put for example a dtpicker (one of the MSCOMCT2.OCX component)
on a form of this project.
\MetalliserverMetallisoftDevelopmentProjectsMP3Player
Is a pain to navigate to every time you want to look at some data files. And that's just a small
path.
So you need to get to the folder where the source is located. You'll find that you can't create a
shortcut in the Project Explorer. Or can you?
To get one, make the shortcut to the folder and place it in the folder, then edit your vbp file in
Notepad, and insert
Code:RelatedDoc=Your Folder Shortcut.lnk
Note that you can have spaces. Put the line somewhere in-between the Forms/Class/Module
lines, near the top of the file. You can also do this with executables:
Code:RelatedDoc=C:Program FilesAdobePhotoshop 7.0Photoshop.exe
I have a template vbp that has Notepad, PhotoShop, Regedit, a few home-made references, and
some other stuff. This way all my new projects start off with everything I need handy.
edit:: I'm so tempted to abuse my new powers and make this a sticky.
Please note that, both or any of the projects are not to be created as executables.
"C:WINNTSystem32
moc3260.dll could not be loaded"
I would aslo like to use a label or a list box to display Lyrics text from a Txt file stored in a
database. Any help within the general scope of ideas would be helpful. As to Why this error is
appearing or as to a easier route to the desired output?????
Line 78: Class RealAudioObjectsCtl.RealAudio of control RealAudio1 was not a loaded control
class.
Line 84: The property name _ExtentX in RealAudio1 is invalid.
Line 85: The property name _ExtentY in RealAudio1 is invalid.
Line 86: The property name AUTOSTART in RealAudio1 is invalid.
Line 87: The property name SHUFFLE in RealAudio1 is invalid.
Line 88: The property name PREFETCH in RealAudio1 is invalid.
Line 89: The property name NOLABELS in RealAudio1 is invalid.
Line 90: The property name SRC in RealAudio1 is invalid.
Line 91: The property name LOOP in RealAudio1 is invalid.
Line 92: The property name NUMLOOP in RealAudio1 is invalid.
Line 93: The property name CENTER in RealAudio1 is invalid.
Line 94: The property name MAINTAINASPECT in RealAudio1 is invalid.
Line 95: The property name BACKGROUNDCOLOR in RealAudio1 is invalid.
Line 69: Class RealAudioObjectsCtl.RealAudio of control RealAudio1 was not a loaded control
class.
Line 75: The property name _ExtentX in RealAudio1 is invalid.
Line 76: The property name _ExtentY in RealAudio1 is invalid.
Line 77: The property name AUTOSTART in RealAudio1 is invalid.
Line 78: The property name SHUFFLE in RealAudio1 is invalid.
Line 79: The property name PREFETCH in RealAudio1 is invalid.
Line 80: The property name NOLABELS in RealAudio1 is invalid.
Line 81: The property name LOOP in RealAudio1 is invalid.
Line 82: The property name NUMLOOP in RealAudio1 is invalid.
Line 83: The property name CENTER in RealAudio1 is invalid.
Line 84: The property name MAINTAINASPECT in RealAudio1 is invalid.
Line 85: The property name BACKGROUNDCOLOR in RealAudio1 is invalid.
Line 75: The property name _ExtentX in RealAudio1 is invalid.
Line 76: The property name _ExtentY in RealAudio1 is invalid.
Line 77: The property name AUTOSTART in RealAudio1 is invalid.
Line 78: The property name SHUFFLE in RealAudio1 is invalid.
Line 79: The property name PREFETCH in RealAudio1 is invalid.
Line 80: The property name NOLABELS in RealAudio1 is invalid.
Line 81: The property name LOOP in RealAudio1 is invalid.
Line 82: The property name NUMLOOP in RealAudio1 is invalid.
Line 83: The property name CENTER in RealAudio1 is invalid.
Line 84: The property name MAINTAINASPECT in RealAudio1 is invalid.
Line 85: The property name BACKGROUNDCOLOR in RealAudio1 is invalid.
Oh the only reason I am adding a project is when i added the frms and class modules
is this line
Call ShowProgressInStatusBar(True, StatusBar1, ProgressBar1, Me)
then becomes undefined?
========================================================
How do i call (or) load a form from one project into another one ? Both exists under same project
group and are created as "Standard EXE". This is a specific requirement.
That is, I ve two projects "Prj1" and "Prj2" under a project group "grp".
"Prj1" contains form1, and "Prj2" contains form2. "Prj2" is set as "Start Up Project". Now, all I
want is that, access form1 when I am in form2.
Please note that, both or any of the projects are not to be created as executables.
It doesn't matter whether I'm looking at an object from either project (e.g. form, module), it
always runs the first .exe project.
Thanks,
-Adrian
one more, in vb 6 what is the code for the output of the web camera. to view it in a form and
record,save,send mms to the cellphone.
app.vbp defines some constants in a file called Header.bas. appsettingsctl.vbp uses some of
these. When I try to build the ocx, I get a "Compile error: variable not defined". Obviously, I am
doing something wrong since all these worked for the previous developer in this effort.
I want to convert my hard work vb project to vb.net so that it can support unicode and utf8
better. However, if I recode it in vb.net ... I have to rampage all the database calls ... api
function ... all the modules ... that will take a few months to code.
Thanks !!!
I just finished making a database application using oracle 9i and visual basic 6.
i tried creating a different project and added certain forms from the original project. but in the
new project(which is a subset of the original project) it doesnt let me update the data. It give me
the following message in a dialog box:
Arguments are of the wrong type, are out of acceptable range, or in conflict with one another.
This cant be possible because the same forms worked just fine while they were part of the
original project. I copied the selected forms into a different location with the new project file, but
the problem persists. Please tell me what I am doing wrong.
rockbold
I know this sounds crazy but it happened and I have no idea about it. If anyone can give me some
hint I really appreciate it.
I have several ActiveX Dll projects which I reference in other projects. They are all in the same
group. At the beginning when I set these up, perfect, no problem. Everytime I compile the
project group, I just do it. If I modified the source of the dlls, I can compile them with no
problem.
After several days using the project group, Suddenly this annoying "permission denied
drive:pathanything.dll" pops up. So I thought I might reference the dll by the dll name, not the
vbp name. So I checked the settings but they are right. The rediculous thing is It only happens if
I want to compile one particular dll. Other dll projects are good as before. More funny thing is, if
I close the project group and reopen it, it let me compile again. Then I make changes then the
annoying thing pops up. Then I have to close the project group and reopen.
Thanks
Can VB Exe Project Have Share Memory With VC++ Exe Project
Hello:
I have an VB program,which call an VC++ exe program inside it's code, The VC++ program get
parameter from a dialog normally. Now I want the EXE auto start and pass the parameter to the
C++ program and it is not an console program which mean it cannot pass to the main(). Have
anybody have this experience can share with me. Can they use share memory to read the
parameter or VC have method to read the parameter which pass by Shellexcute command from
VB.
Thank you for help
wky086
Project And Visio API (VBA)- Using Milestones In Project To Create A Visio Timeline
I have a problem here and I hope someone will be able to assist me.
I have a bunch of milestones in project and I would like to select a few of the milestones and
create a visio timeline for it. I know 2007 has an option to import the whole project file to create
a timeline but I just want the selected milestones to appear. Is there a way?
I got a feedback from someone and I'd like to share it with you guys to see if it works.
"This sounds like it would require some custom code using the Project and Visio APIs, perhaps
in VBA. I don't think it would be terribly complicated- get the selected milestones in Project,
copy their attributes, drop a timeline shape in Visio, drop some milestones on it, and configure
the milestones using the Project milestones' attributes."
bananatree
Always learning...
Adding A Project Ot A Project
I've got 4 separate programs that I'd like to join in one suite.
The obvious answer would be to add them as projects to a main
menu project and run.
Unfortunately, I can't get the form for the first project to set focus.