This is a discussion on "Cleaning code..." within the Classic ASP section. This forum, and the thread "Cleaning code... are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Cleaning code...
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Cleaning code...
ok, this is what I have .
|
|
|
|
|||
|
I would at least trim it down to this, though I'm not sure if the If statements are supposed to be exclusive - if so you'd want to put a . I never use the .update method of recordsets personally. I use SQL UPDATE queries instead.
|
|
|||
|
cool, I like the way you did that. I didn't think about doing it that way. It's still got about 10-15 more checks to do but this is the fuondation for my building, the rest I will figure out. I appreciate the help. Also, I noticed that you used rs and con. are these just to save you time or do they actually work? I would love to find out for myself, but my internet connection is down and I am having to use another computer. Thanks again for the help.
|
|
|||
|
No problem. Coding style varies from person to person.
rs and con are to save time and simplify the code. If you're not using Option Explicit and you use long variable names you're going to end up with typos in your variables, which can be wicked-hard to catch. You might also consider making a function to do a check and calling it when you need to, or using SELECT CASE instead of lots of IF THEN statements. |
![]() |
| Tags |
| cleaning, code |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| London Dry Cleaning Company | spinal007 | Free Web Site Critique | 19 | Sep 17th, 2007 11:39 |
| Eco Friendly and Reliable Domestic and Carpet Cleaning Services in London | Axel | Free Web Site Critique | 10 | Aug 17th, 2007 09:11 |
| Cleaning up footer and positioning | genista | Web Page Design | 10 | Aug 14th, 2007 14:28 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 12:27 |
| History cleaning development | joachim shotter | Job Opportunities | 1 | Oct 30th, 2005 11:20 |