Results 1 to 2 of 2

Thread: match value to available values

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2001
    Location
    St-Hubert, Quebec, Canada
    Posts
    70

    Unhappy match value to available values

    I have a list of available electronic componants each having a specific value. I would like to do three things.
    1) I want to enter a value in a textbox and a way to verify if the desired value is available and if not. Is there a combination of two or three componants that equal my desired value? It's possible to use the same value twice if need be.
    Let me clarify.
    Let's say X = desired value and a, b, c = available componants; then X=a or X=b ... or X=a+a or X=a+b or X=a+a+c . . .etc

    2) I would like the code to show the values of a,b, c used in the equation in a label

    3) Upon demand, permit a tolerance of the desired value of plus or minus 2. For example X=a or X-2=a or X+2=a...


    My thread is similar to:
    Http://www.vbforums.com/showthread.p...hreadid=194155
    with the exception of showing values and selecting tolerances.

    Pleeze help guys!
    Elvis is in the house!

  2. #2
    Fanatic Member bugzpodder's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    787
    well i am giving you the exactly the same advice i have given in that thread. however the original method is approachable especially becuause of the small tolerance. everything you need is in the other thread.
    Massey RuleZ! ^-^__Cheers!__^-^ Massey RuleZ!


    Did you know that...
    The probability that a random rational number has an even denominator is 1/3 (Salamin and Gosper 1972)? This result is independently verified by me (2002)!

Posting Permissions

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



Click Here to Expand Forum to Full Width