User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 392,022 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,268 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 1274 | Replies: 2
Reply
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

first vb prog attatched , how to shorten code though

  #1  
Jul 23rd, 2005
hi all attatched program is a bend allowence calculator for sheet metalwork , i have a few programes that do the same thing and are more advanced, i could also do the same thing longhand, but my aim was to see if i could actually figure out how a program is written, and produce one myself .

but what i find is what always seems to trip me up in vb, is for example in code for programe, trying to write length1+length2 - ba could not get vb to recognise what (ba) was meant to represent it would just add length1 &2 , so had to write the whole calculation just to tell it what ba meant to get correct result. also do not know how to get lines of code to not go right across page ,thought _ underscore linked code.

thank you all for your assistance
Attached Files
File Type: zip bdcalc.zip (1.4 KB, 3 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: Illinois, USA
Posts: 43
Reputation: Sp!ke is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Sp!ke's Avatar
Sp!ke Sp!ke is offline Offline
Light Poster

Re: first vb prog attatched , how to shorten code though

  #2  
Jul 23rd, 2005
I really don't see how much more short that could get, you did everything right, and if you're worried about computer load, don't worry, a small application like this has no effect on a computer whatsoever.

I attached your program, but I cleaned it up a bit, added the underscores like you mentioned, etc.
Attached Files
File Type: zip mybends.zip (1.0 KB, 5 views)
Reply With Quote  
Join Date: Jul 2005
Posts: 19
Reputation: mickyboy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
mickyboy mickyboy is offline Offline
Newbie Poster

Re: first vb prog attatched , how to shorten code though

  #3  
Jul 24th, 2005
thanks spike ,
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

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

 

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 10:47 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC