andyt2000
07-23-2001, 04:49 PM
Hey bros, i need your help. Its my final project for Visual Basic. My project is supposed to calculate shipping charges, for small packages. I am 85 % percent done on it, but i have debugging problems. You can find the bugs when u run the code. The problems are in the rates.frm, and mainly calculate.frm. Can u help me fix it, the project is due tommorrow, yr help would be much Appreciated, thanks.
I have zipped the project in a zip file, with the dat files included.
http://home.earthlink.net/~andyt2000/final.zip
<P ID="edit"><FONT class="small"><EM>Edited by andyt2000 on 07/23/01 06:32 PM.</EM></FONT></P>
KesleyK
07-23-2001, 04:55 PM
Specific questions would probably be better received, rather than "please debug my code for me"...
______
Cheers!
andyt2000
07-23-2001, 05:33 PM
Hey bros, i need your help. Its my final project for Visual Basic. My project is supposed to calculate shipping charges, for small packages. I am 85 % percent done on it, but i have debugging problems. You can find the bugs when u run the code. The problems are in the rates.frm, and mainly calculate.frm. Can u help me fix it, the project is due tommorrow, yr help would be much Appreciated, thanks.
I have zipped the project in a zip file, with the dat files included.
http://home.earthlink.net/~andyt2000/final.zip
BillSoo
07-23-2001, 05:39 PM
While your post is better than those who ask us to write a homework assignment from scratch...I have to agree with KesleyK here...
Please describe the nature of the your bugs. Is the program crashing? Is it just giving bad data? What kind of dataset are you using? etc.
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Robby
07-23-2001, 06:02 PM
I had a quick look at the code, first of all there is no startup form or sub main(). Add this to your modMain:
<pre>
Sub main()
frmMain.Show
End Sub
</pre>
Also, the path pointing to your data files is fixed to the A drive, that's a no no. try this:
Open App.Path & "\rates.dat" For Input As #1
App.Path is the path that your .EXE or .VBP started in.
Also I found much to many global and modular level variables, I didn't really go into details but I find there are too many for a small project.