Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clear edit_box

Status
Not open for further replies.

lrfcbabe

Programmer
Jul 19, 2001
108
US
I want to clear the contents of an edit_box if the user selects a radio button. Loading and running the DCL is no prob., stdscale is not getting set correctly, (print stdscale) returns nil every time i select a button. scla and sclb are defined radio_buttons in the DCL.
Thanks

(action_tile "scla" "(set_scale $value)")
(action_tile "sclb" "(set_scale $value)")
(action_tile "accept" "(getscale) (done_dialog)")

(defun set_scale (which)
(cond
((= which "scla") (setq stdscale 10.6666667))
((= which "sclb") (setq stdscale 5.33333333))
);cond
(if stdscale (set_tile "othscale" ""))
(print stdscale)
 
All I had to do was ask and I would figure it out. This is what I came up with. Talk about making a mountain out of a molehill.

(action_tile "scla" "(set_scale)")
(action_tile "sclb" "(set_scale)")
(action_tile "accept" "(getscale) (done_dialog)")

(defun set_scale ()
(if (/= (get_tile "othscale") "")(set_tile "othscale" "")));defun
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top