OK to continue

Discussion in 'AutoCAD' started by coachball8, Mar 23, 2005.

  1. coachball8

    coachball8 Guest

    Can 2 pieces of code be seperated by a simple ok_cancel dialogue box, with ok being to proceed to the second section of code, and cancel ending the routine? If so, can someone tell me how to make it happen? TIA
     
    coachball8, Mar 23, 2005
    #1
  2. coachball8

    BillZ Guest

    Same as you do any other dialog box.

    Initiate the box and gather the 1 or 0 from the:

    (setq fc (start_dialog))
    (unload_dialog dcl_id)
    (if (= fc 1)
    (progn
    Do this of that

    Bill
     
    BillZ, Mar 23, 2005
    #2
  3. coachball8

    coachball8 Guest

    Thanks Bill. I finally figured that out......just never got a chance to come back and say so. I appreciate the reply, though.
     
    coachball8, Mar 23, 2005
    #3
  4. coachball8

    Paul Turvill Guest

    If you don't want to "roll your own" using DCL, and you have DOSLib (from
    McNeel), you might have a look at the (dos_msgbox) function.
    ___
     
    Paul Turvill, Mar 23, 2005
    #4
  5. coachball8

    coachball8 Guest

    Thanks Paul. I wouldn't be caught without DOSLib, but I've never "rolled my own" dialogue box, so I'm having a go at it. Thanks again.
     
    coachball8, Mar 23, 2005
    #5
  6. coachball8

    BillZ Guest

    so I'm having a go at it<<<

    Let us know if you need any help.

    Bill
     
    BillZ, Mar 24, 2005
    #6
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.