473,394 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Wanted neat / experienced coder :)

283 100+
I have a project that I have been playing with and I could really do with somebody who has time to spare to look through my code and suggest how I could have tidied up some of the lengthy code ( mainly if statements )

the project is nothing major as is supposed to be a little timer that stays topmost on my screen and changes colour according to the closeness of four alarm times and is supposed to help me at work to monitor the closeness of breaks as I easily get lost doing things and miss the breaks

some things have been changed into functions and are neater but others I could not work out how to tidy up

unfortunately no monetary prize awaits any volunteers but I will really appreciate any pointers I can get

example code below -

Expand|Select|Wrap|Line Numbers
  1.  
  2.  Public Sub check_enabled()
  3.  
  4.         If alarmisabove(BreakTimeA._sumtime) Then
  5.             BreakTimeA._enabled = True
  6.             Timer1ToolStripMenuItem.Checked = True
  7.         Else
  8.             BreakTimeA._enabled = False
  9.             Timer1ToolStripMenuItem.Checked = False
  10.         End If
  11.  
  12.         If alarmisabove(BreakTimeB._sumtime) Then
  13.             BreakTimeB._enabled = True
  14.             Timer2ToolStripMenuItem.Checked = True
  15.         Else
  16.             BreakTimeB._enabled = False
  17.             Timer2ToolStripMenuItem.Checked = False
  18.         End If
  19.  
  20.         If alarmisabove(breakTimeC._sumtime) Then
  21.             breakTimeC._enabled = True
  22.             Timer3ToolStripMenuItem.Checked = True
  23.         Else
  24.             breakTimeC._enabled = False
  25.             Timer3ToolStripMenuItem.Checked = False
  26.         End If
  27.  
  28.         If alarmisabove(breakTimeD._sumtime) Then
  29.             breakTimeD._enabled = True
  30.             Timer4ToolStripMenuItem.Checked = True
  31.         Else
  32.             breakTimeD._enabled = False
  33.             Timer4ToolStripMenuItem.Checked = False
  34.         End If
  35.  
  36.  
  37.     End Sub
  38.  
  39.  
Sep 23 '08 #1
0 866

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris | last post by:
We are looking for a talented, highly experienced PHP/MySQL programmer in the UK, who can write neat and efficient code. You will also need a firm grasp of XHTML, XML, CSS, Mod-Rewrite. We...
0
by: Carl Mercier | last post by:
(I am not sure if this is the right group for this, so please don't flame) We are currently looking for a .NET programmer with deep knowledge of the following: - VB.NET and C# - n-tier WinForm...
20
by: parametriceq | last post by:
Hello, I just realized there's only a "g" separating me from....me? Old Coder or Old Codger? Anyway, I haven't programmed since the late 80's. My experience then was with DEC PDP-11's and...
87
by: ziliath | last post by:
I recently tried out the Google "top coder" contest, as a C++ coder. I noticed immediately that they expected me to know STL. To which I say, what the fuck?! I may be missing something, but at...
23
by: Skybuck Flying | last post by:
Some coders don't need an obfuscator, they are the obfuscator. Bye, Skybuck =D
63
by: Jake Barnes | last post by:
In the course of my research I stumbled upon this article by Alex Russel and Tim Scarfe: http://www.developer-x.com/content/innerhtml/default.html The case is made that innerHTML should never...
0
by: larry | last post by:
Here is a great little blog discussion that goes a long way in response to the many "PHP Coder Needed" posts we see here: http://codeclimber.blogspot.com/2008/04/all-i-need-is-programmer.html ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.