Jump to content
GLORY

Multiplying a number to a inputbox value

Recommended Posts

GLORY

Hello,

 

I just want to ask regarding the program I want to make cause I am having a problem on how to multiply the two values ( a real number and value from an input box):

 

Part of my DCL;

 : edit_box  {     
      key = "sc";     
             label = "ENTER SCALE :";
    alignment = centered;    
      width = 10;     
      fixed_width = true;
    is_enabled = false;}

 

Part in my LISP;

 (set_tile "sc" "500")
 (mode_tile "sc" 2)

 (action_tile "en" "(progn (setq en $value)(mode_tile \"sc\" 0))")
 (action_tile "accept"
   "(setq scale (get_tile \"sc\")
      (done_dialog 1)
    )"
 )

 

(defun Styles()
 (setq size (* 0.00225 scale))

….)

 

but after running the program just exit.

 

Hope someone can have time to help with this. Thank you!

Share this post


Link to post
Share on other sites
Tharwat
(setq size (* 0.00225 (distof scale)))

 

Share this post


Link to post
Share on other sites
Tharwat
57 minutes ago, GLORY said:

@ Tharwat Thank you so much.

You're welcome.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...