Computer Science Canada Help with a database program |
Author: | JR [ Wed Mar 10, 2004 9:46 am ] | ||
Post subject: | Help with a database program | ||
hey, this is a program i made and it stores some book names ect, but when i try to output it i get some bugs and some other stuff. Can u help me fix it? thx and is there an easier way to put all those lines? instead of alot of lines like less.
|
Author: | Paul [ Wed Mar 10, 2004 11:58 am ] | ||||||
Post subject: | |||||||
The locate thingy doesn't work well on the school resolution and here
this runs 50 times, during the for loop I think, and if the user only enters one list of stuff, bookname (49) or whatever won't have any values. And so it won't output it. so if you do this:
it will actually show everything, including the blank info, but that sux, so you need to have an if statement going something like this:
and so on, also fix your formatting. |
Author: | JR [ Thu Mar 11, 2004 9:37 am ] |
Post subject: | |
where do i exactly put those lines? |
Author: | Paul [ Thu Mar 11, 2004 4:43 pm ] |
Post subject: | |
The first one you can put after your variables if you like, the second one is used to check if there is info in your variables, and if there is, it outputs it. So when a user goes to "View Data" or something, you put it there to output the data, so it won't output spaces. |
Author: | JR [ Thu Mar 11, 2004 6:01 pm ] | ||
Post subject: | |||
ok i put it like that and it still doesnt work.
|
Author: | Thuged_Out_G [ Thu Mar 18, 2004 12:47 am ] | ||
Post subject: | |||
well you see...with this code you have here
your setting the array equal to nothing...and then saying, if blah isnt equal blank then put the info...but you are already setting it to be blank, so it will always be blank lol |
Author: | JR [ Thu Mar 18, 2004 3:27 pm ] |
Post subject: | |
so how do i fix it? |
Author: | Thuged_Out_G [ Thu Mar 18, 2004 4:56 pm ] |
Post subject: | |
ugh...your code is messy...you should make everything a procedure |
Author: | JR [ Sun Mar 21, 2004 3:07 pm ] |
Post subject: | |
bah i cant figure it out, can u plz help me? |