Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am learning about lisp and tried a small program that shows a Hello World message box but failed.
I ran the APPLOAD command then found the hello.lsp file and Load, then typed the hello command.
I checked FILEDIA and CMMDIA both have the value of 1.
hello.dcl
hello_dialog : dialog {
label = "Message";
: text {
label = "Hello World";
}
: button {
key = "ok_btn";
label = "OK";
is_default = true;
is_cancel = true;
}
}
hello.lsp
(defun c:HELLO ( / dcl_id)
(setq dcl_id (load_dialog "hello.dcl"))
(new_dialog "hello_dialog" dcl_id)
(action_tile "ok_btn" "(done_dialog 1)")
(start_dialog)
(unload_dialog dcl_id)
(princ)
)
Solved! Go to Solution.