Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Will anyone help me with my project?
#21
I updated everything. Meg thanks for all your help....
Also: That dim shared thing doesn't work so i didn't use it
Here is the update

DECLARE SUB editvid ()
DECLARE SUB addvid ()
DECLARE SUB delvid ()
DECLARE SUB listvid ()
DECLARE SUB searchvid ()
DECLARE SUB LEAVE ()
DECLARE SUB mainmenu ()
TYPE videotype
id AS INTEGER
vidname AS STRING * 50
vidgenre AS STRING * 50
vidactor AS STRING * 50
vidratin AS STRING * 50
END TYPE
DIM vid AS videotype




CLS
mainmenu

SUB addvid

DIM vid AS videotype
OPEN "vid.dat" FOR RANDOM AS #1 LEN = LEN(vid)
DO UNTIL response$ = "n"
INPUT "please enter video's barcode number", id
vid.id = id

INPUT "enter name of video", vid.vidname

INPUT "enter main actor of film", vid.vidactor

INPUT "enter rating of video ?/10 ", vid.vidratin

INPUT "enter genre of the movie being borrowed", vid.vidgenre


PRINT "you added a new video"
PUT #1, id, vid


INPUT "do you want to add any another videos? y-Yes, n-No ", response$
LOOP
CLOSE #1

END SUB

SUB delvid
DIM vids AS videotype

END SUB

SUB editvid
END SUB

SUB LEAVE
PRINT "Goodbye user!!!!!"
END SUB

SUB listvid
END SUB

SUB mainmenu
COLOR 10
20 PRINT "WELCOME TO VIDEOTRONICS DATABASE"
30 PRINT "Please Select an Option from below"
40 PRINT "1 - To add a new video"
50 PRINT "2 - Delete a video"
60 PRINT "3 - List all videos"
70 PRINT "4 - search a video"
80 PRINT "5 - Edit video details"
90 PRINT "6 - EXIT DATABASE "
100 INPUT C
SELECT CASE C
CASE IS = 1
addvid
CASE IS = 2
delvid
CASE IS = 3
listvid
CASE IS = 4
searchvid
CASE IS = 5
editvid
CASE IS = 6
LEAVE
CASE ELSE
PRINT "You inserted an invalid option"
GOTO 100
260 END SELECT


END SUB

SUB searchvid
DIM vid AS videotype
CLS
DO UNTIL response$ = "n"
INPUT "please enter video's bar code number", id
vid.id = id


OPEN "vid.dat" FOR RANDOM AS #1
GET #1, id, vid




PRINT "This is the video's name", vid.vidname
PRINT "this is the video's genre", vid.vidgenre
PRINT " this is the video's main actor", vid.vidactor
PRINT "this is the video's rating", vid.vidratin
INPUT " Do you wish to search for another record?", response$
LOOP
CLOSE #1

END SUB



Meg could you also give me a tip on what i should do for the delete sub and the list sub. I wanna make sure that my idea is precise.

PS: I was just looking at the marking scheme for this project, it goes for 30% of part of our final exams. And guess what, this program is like 5 marks only. But without it we won't be able to do the rest.
ill Gates time is almost up.... i am taking over
Reply


Messages In This Thread
Will anyone help me with my project? - by SnakeZ - 02-27-2005, 05:20 AM
Will anyone help me with my project? - by SnakeZ - 02-28-2005, 04:40 AM
Will anyone help me with my project? - by SnakeZ - 02-28-2005, 06:35 AM
Will anyone help me with my project? - by Meg - 02-28-2005, 09:07 AM
Will anyone help me with my project? - by SnakeZ - 03-01-2005, 06:02 AM
Will anyone help me with my project? - by Meg - 03-01-2005, 08:15 AM
Will anyone help me with my project? - by SnakeZ - 03-02-2005, 05:54 AM
Will anyone help me with my project? - by Meg - 03-02-2005, 07:01 PM
Will anyone help me with my project? - by SnakeZ - 03-03-2005, 08:08 AM
Will anyone help me with my project? - by Meg - 03-03-2005, 06:41 PM
Will anyone help me with my project? - by Anonymous - 03-04-2005, 07:11 AM
Will anyone help me with my project? - by Meg - 03-05-2005, 01:25 AM
Will anyone help me with my project? - by SnakeZ - 03-05-2005, 10:32 PM
Whohoo - by Meg - 03-06-2005, 12:43 AM
Will anyone help me with my project? - by SnakeZ - 03-06-2005, 08:40 AM
Will anyone help me with my project? - by Meg - 03-06-2005, 08:01 PM
Will anyone help me with my project? - by SnakeZ - 03-06-2005, 08:39 PM
Will anyone help me with my project? - by SnakeZ - 03-06-2005, 09:27 PM
Will anyone help me with my project? - by Meg - 03-07-2005, 01:22 AM
Will anyone help me with my project? - by Neo - 03-07-2005, 01:36 AM
Will anyone help me with my project? - by SnakeZ - 03-07-2005, 02:06 AM
Will anyone help me with my project? - by Meg - 03-07-2005, 10:06 AM
Will anyone help me with my project? - by SnakeZ - 03-09-2005, 04:56 AM
Will anyone help me with my project? - by SnakeZ - 03-09-2005, 07:38 AM
Will anyone help me with my project? - by Meg - 03-09-2005, 08:17 AM
Will anyone help me with my project? - by SnakeZ - 03-10-2005, 12:52 AM
Will anyone help me with my project? - by Meg - 03-10-2005, 01:44 AM
Will anyone help me with my project? - by SnakeZ - 03-10-2005, 02:10 AM
Will anyone help me with my project? - by Meg - 03-10-2005, 04:13 AM
Will anyone help me with my project? - by SnakeZ - 03-10-2005, 06:35 AM
Will anyone help me with my project? - by Meg - 03-10-2005, 08:53 AM
Will anyone help me with my project? - by SnakeZ - 03-11-2005, 01:05 AM
Will anyone help me with my project? - by Meg - 03-11-2005, 01:59 AM
Will anyone help me with my project? - by SnakeZ - 03-11-2005, 03:49 AM
Will anyone help me with my project? - by Meg - 03-11-2005, 04:54 AM
Will anyone help me with my project? - by SnakeZ - 03-11-2005, 07:13 AM
Will anyone help me with my project? - by Meg - 03-11-2005, 07:17 AM
Will anyone help me with my project? - by SnakeZ - 03-11-2005, 08:07 AM
Will anyone help me with my project? - by Meg - 03-11-2005, 05:01 PM
Will anyone help me with my project? - by SnakeZ - 03-12-2005, 07:04 AM
Will anyone help me with my project? - by Meg - 03-12-2005, 08:12 AM
Will anyone help me with my project? - by SnakeZ - 03-12-2005, 09:18 AM
Will anyone help me with my project? - by Meg - 03-12-2005, 11:54 AM
Will anyone help me with my project? - by SnakeZ - 03-13-2005, 04:45 AM
Will anyone help me with my project? - by Meg - 03-13-2005, 06:32 AM
Will anyone help me with my project? - by SnakeZ - 03-13-2005, 07:13 AM
Will anyone help me with my project? - by Meg - 03-13-2005, 08:58 AM
Will anyone help me with my project? - by SnakeZ - 03-13-2005, 07:35 PM
Will anyone help me with my project? - by Meg - 03-13-2005, 07:56 PM
Will anyone help me with my project? - by SnakeZ - 03-13-2005, 08:56 PM
Will anyone help me with my project? - by Phydaux - 03-13-2005, 10:17 PM
Will anyone help me with my project? - by SnakeZ - 03-13-2005, 11:26 PM
Will anyone help me with my project? - by SnakeZ - 03-14-2005, 01:13 AM
Will anyone help me with my project? - by Meg - 03-14-2005, 03:59 AM
Will anyone help me with my project? - by Meg - 03-16-2005, 02:58 AM
Will anyone help me with my project? - by SnakeZ - 03-24-2005, 06:23 AM
Will anyone help me with my project? - by SnakeZ - 04-23-2005, 06:30 AM
Will anyone help me with my project? - by SnakeZ - 04-30-2005, 06:54 AM
Will anyone help me with my project? - by Pyrokid - 05-02-2005, 08:44 PM
Will anyone help me with my project? - by SnakeZ - 05-08-2005, 06:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)