Lcd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lee123
    Contributor
    • Feb 2007
    • 556

    Lcd

    hello i want to make a form that shows me the LCD of numbers that i can put in two text boxes and have it show me the answer in a third textbox. but don't know how i can do this.

    Example: if i put a 2 in textbox1 and put a 7 in textbox2 then in the third textbox show me the answer.

    lee123
  • jg007
    Contributor
    • Mar 2008
    • 283

    #2
    Sorry, I am not sure what you mean by ' show the LCD ', please can you post some of your code and some description of what you are trying to do.

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Originally posted by lee123
      hello i want to make a form that shows me the LCD of numbers that i can put in two text boxes and have it show me the answer in a third textbox. but don't know how i can do this.

      Example: if i put a 2 in textbox1 and put a 7 in textbox2 then in the third textbox show me the answer.

      lee123
      Lee123,

      Please be more specific as it will ensure definite answer. Take care

      Comment

      • lee123
        Contributor
        • Feb 2007
        • 556

        #4
        sorry "lowest common denomiator"

        lee123

        Comment

        • Ali Rizwan
          Banned
          Contributor
          • Aug 2007
          • 931

          #5
          Originally posted by lee123
          sorry "lowest common denomiator"

          lee123
          i got the lcd in wrong meanings sorry.

          Regards
          *Removed Link*
          >> ALI <<
          Last edited by acoder; Oct 2 '08, 01:53 PM. Reason: Please do not post non-useful links

          Comment

          • jg007
            Contributor
            • Mar 2008
            • 283

            #6
            ok, took me ages to get the code right and I am not sure what the largest numbers you can enter are and also how long it will take to calculate them! :)

            I won't post the code as it is something I think you need to try working out yourself so I will post a rough idea of how I have it set up

            (there may be a better way of doing this so others may post better sugestions)

            Code:
            1. Set up 2x collections with all the numbers 
            
            2. check which collection contains the most numbers
            
            3. check if the value for each item in that collection is present in the second collection starting with the lowest number which should be the last entry in the collection.
            
            4. once I found the item with the lowest value that was present in each collection I set the value of the 3rd textbox to that

            Comment

            Working...