Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Please debug my code for me


Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2001, 04:49 PM
andyt2000
Guest
 
Posts: n/a
Question Please debug my code for me


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>
Reply With Quote
  #2  
Old 07-23-2001, 04:55 PM
KesleyK's Avatar
KesleyK KesleyK is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Jun 2001
Location: Idaho, missing Dallas
Posts: 965
Default Re: In need of help

Specific questions would probably be better received, rather than "please debug my code for me"...

______
Cheers!
__________________
We shall persevere.
Reply With Quote
  #3  
Old 07-23-2001, 05:33 PM
andyt2000
Guest
 
Posts: n/a
Question Please debug my code for me

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

Reply With Quote
  #4  
Old 07-23-2001, 05:39 PM
BillSoo's Avatar
BillSoo BillSoo is offline
Code Meister

Retired Moderator
* Guru *
 
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
Default Re: Please debug my code for me

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
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
Reply With Quote
  #5  
Old 07-23-2001, 06:02 PM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
 
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565
Default Re: Please debug my code for me

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.

__________________
Visit...Bassic Software
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->