Message 1 of 6
DCL : Call a function (Autolisp) iside an action_tile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Having some "edit_box"s with key "key1" "key2"...
The object is to get the values of these Boxes after click on the OK button; so we define a function (GatVal) and call it inside the click button action _tile:
The object is to get the values of these Boxes after click on the OK button; so we define a function (GatVal) and call it inside the click button action _tile:
(action_tile "accept" "(GetVal) (done_dialog)"
(start_dialog)
(unload_dialog dcl_id)
(defun GetVal()
(setq MuValue1 (atof (get_tile "Key1" ))
MuValue2 (atof (get_tile "Key2" ))
...
)
)
However, this does not work, This is the error when taping OK button:
error: bad argument type: stringp nil