DCL Value not passing to the Lisp Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
I hope skilled people from this group can help some less skilled one like me here..
I have started to learn about DCL through online videos. I have created a test DCL and LISP. Lisp will get longer as I succeed in this.
So coming to the conversation, my LISP is getting loaded, dialog box pops up and I provide value in the edit box. After hitting OK button the value stored in the DCL is not passing to the variable I set in LISP. To dig deeper I added a princ line and it says No Value. So can anyone look into this and let me know where I am going wrong or what wrong line I have written because of which value from DCL is not passing to the Lisp variable.
THANKS IN ADVANCE
======LISP Code=====
(defun c:test ()
(setq dcl_id (load_dialog "test_inputs.dcl"))
(if (not (new_dialog "test_inputs" dcl_id))
(progn
(princ "\nFailed to load dialog.")
(exit)
)
)
(action_tile "ok_button" "(done_dialog 1)")
(action_tile "cancel_button" "(done_dialog 0)")
(setq dialog_result (start_dialog))
(setq NAC_Address (get_tile "Starting_Strobe_Address"))
(princ (strcat "\nRetrieved Address: '" (if NAC_Address NAC_Address "No value") "'"))
(unload_dialog dcl_id)
(princ)
)
==========DCL Code===========
test_inputs : dialog {
label = "Enter Notification Address";
: edit_box {
key = "Starting_Strobe_Address";
label = "Strobe Address:";
}
ok_cancel;
}