+ Reply to Thread
Results 1 to 3 of 3

Thread: TechTip: Overloading Indicators

  1. #1

    Default TechTip: Overloading Indicators

    ** This thread discusses the article: TechTip: Overloading Indicators **
    ** This thread discusses the Content article: TechTip: Overloading Indicators **
    0

  2. #2
    Guest.Visitor Guest

    Default TechTip: Overloading Indicators

    ** This thread discusses the article: TechTip: Overloading Indicators **
    Reducing the number of variables, in this case, indicator variables, in a program is not necessarily a benefit in itself. Reducing the number of variables can make a program more readable, but this is not true in every case. I don't refer to numeric indicators in my programs, I prefer to use named boolean variables that map to indicators in the display file because it makes the program easier to understand. In your example, the boolean variable actually serves 2 purposes, so naming these variables so that it is clear what their purpose is becomes more of a challenge. I think trying to get as much functionality as possible out of each variable as you are doing in your examples does not improve program readability and one could make the argument it reduces readability to some degree. Jim Suiter

  3. #3
    Guest.Visitor Guest

    Default TechTip: Overloading Indicators

    ** This thread discusses the article: TechTip: Overloading Indicators **
    I believe that indicators have been given a bad rap. Indicators are easy to use. I do not see the value in re-using the same indicator for different functions. In my subfile programs, I always use 40 to clear and 41 to display the control and 42 to display the detail (if there is any--a lot of my programs will not have detail). By adhering to this standard, my programs are easy to follow and easy to change. I do not turn on an idicator or fill a field because of a situation (unless it is to display a screen atribute) in my programs. I use the actual situation to cause code to be executed. Indicators are our friends. Yes, indicators can be over-used; but so can anything else.

+ Reply to Thread

Similar Threads

  1. Replies: 23
    Last Post: 06-21-2007, 09:53 AM
  2. TechTip: Command Key Indicators
    By Guest.Visitor in forum CL
    Replies: 2
    Last Post: 10-21-2003, 08:24 AM
  3. Too many indicators
    By S.Mildenberger in forum RPG
    Replies: 11
    Last Post: 06-11-2003, 11:10 AM
  4. what other indicators I can use
    By Guest.Visitor in forum Application Software
    Replies: 7
    Last Post: 10-04-2000, 04:26 PM
  5. Renaming indicators
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 04-03-2000, 08:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts