My dad has it somewhere on some cds need to find it.
My dad has it somewhere on some cds need to find it.
msdn.microsoft.com ?
Or just use the internet in general lol. Plenty of VB programming forums
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
vb Code:'Student Name(s) : Simon Ly
'Assignment Number : 1
'Declaration: I hereby certify that this assignment is entirely my own work, except where I have
'acknowledged all material and sources used in the preparation of this assignment.
'I certify that all typing/keystrokes have been done by me.
'I also certify that the material contained in this assignment has not previously been submitted
'for assessment in any formal course of study, and that I have not copied in part or whole, or
'otherwise plagiarised the work of other students and/or persons
'This program works out the seat reservations for an cinema and keeps track of avialable seats and booked seats.
Dim t As Double
Private Sub Combo1_Click()
If Combo1.Text = "a1" Then
Combo2.AddItem "b2"
End If
End Sub
Private Sub Command1_Click()
Dim a As Double
Dim c As Double
Dim s As Double
a = 15.95
c = 10.95
s = 8.5
t = (Text1 * a) + (Text2 * c) + (Text3 * s)
Label5.Caption = "$" & t
End Sub
Private Sub Command2_Click()
Dim p As Double
p = t
p = p - Text4.Text
Label7.Caption = p
End Sub
Private Sub Form_Load()
Combo1.AddItem "a1"
Combo1.AddItem "a2"
Combo1.AddItem "a3"
End Sub
Private Sub Timer1_Timer()
Label35.Caption = TimeValue(Now)
Label36.Caption = DateValue(Now)
End Sub
i havent done the selecting movie with database yet. is there anything i should change?
Looks ok.
Start naming them correctly now. Its good practice to name them.
CMBmovie - Combo Box for selecting Movie
etc
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
I would recommend that you use a .ini file which downloads at startup of the program to a random dir OR the dir of the program, either way, you just update the ini, upload to an ftp and there u got an working system.
Example (don't have code with me atm) :
I know that might seem stupid but I have the code to make all that work, I'll check back soon and put in the actual code.[Form load]
Download ini
Read ini and put the code in place, like :
Text1.Text = App.path/random path (if used random).INIFileName."MOVIES"."TIMES"
Siggy is out, sry fellas :/
INI files are a step back. I wouldnt suggest using them simple because your gonna get marked down for use of data types.
When you create a database the enduser can simple open it up and can easily alter the data.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
How would i display the day eg like Monday etc.
Also For seat selecting how would i do that?
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
Maybe try
Weekday
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
So how would i do a seating class.?
You need to create a class file to do all that.The Visual Basic Project must include the use of a class called cinemaSeat. This describes each seat in the cinema which includes:
Seat type (Adult, Child, Student or Pension)
Seat Cost
Seat Location (Eg: A6, C5)
Seat Available (Stores Y for available and N for taken)
Book seat function
Check availability of a seat
Display seats in cinema
Calculate total cost
Note: the program may require more properties and/or functions for this class.
The Visual Basic Project must also include a two-dimensional array of this aforementioned class, that is, an array of cinema seats. This array
must be large enough to accommodate all seats in the cinema.
http://msdn.microsoft.com/en-us/library/ms973814.aspx
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
I was thinking more of downloading to a random spot in the computer, rename to something random and THEN open it, that'll make it alot harder to find, OR at startup it downloads ini and runs, that way there only way to alter is to unplug your internet, and whats the point in that?
Siggy is out, sry fellas :/
There are currently 1 users browsing this thread. (0 members and 1 guests)