Convert amount to opposite

Discussion in 'AutoCAD' started by BillZ, May 11, 2004.

  1. BillZ

    BillZ Guest

    R2005 Vlisp:

    I have a slider that returns from 0 - 100 and the value is fed to the delay command. I also display this value as a percent in an edit box that is programmed to react with the slider.
    My problem is:
    How do I display 100 in the edit box when the slider returns 0? Or anywhere in that spectrum, i.e. when the slider returns 25, the edit box displays 75?
    Am I making sense? I want to show that when the delay is set to a low value then the speed is approaching the higher end of the spectrum.

    Thanks

    Bill
     
    BillZ, May 11, 2004
    #1
  2. BillZ

    Murph Guest

    You were until your other posts.

    "> Am I making sense?

    unless the NG is out of sync and I'm not getting the replies from the web
    side.

    Murph
     
    Murph, May 11, 2004
    #2
  3. BillZ

    ECCAD Guest

    Murph,
    Is out of sync..see Web Side.
    Bob
     
    ECCAD, May 11, 2004
    #3
  4. (setq DisplayValue (- 100 SliderPosition))

    delay command. I also display this value as a percent in an edit box that is
    programmed to react with the slider.
    anywhere in that spectrum, i.e. when the slider returns 25, the edit box
    displays 75?
    value then the speed is approaching the higher end of the spectrum.
     
    Rick Francken, May 12, 2004
    #4
  5. BillZ

    BillZ Guest

    Thanks!
    I did finally get it...

    I was having a "thick head" day.


    Thanks Again

    Bill
     
    BillZ, May 12, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.