TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: jonathann3891 on March 19, 2024, 03:41:27 PM

Title: ReturnPressed Event
Post by: jonathann3891 on March 19, 2024, 03:41:27 PM
I'm getting this error when pressing "Enter" in a text box to activate a button

NIL Value not allowed

Here is a code snippet:
Code: [Select]
;; Run command with retrun key
(defun c:FindMS/Form1/TextBox1#OnReturnPressed (/)
  (dcl-sendstring "FindMS/Form1/TextButton1#OnClicked\r")
)



"ReturnPressed" is checked in my odcl.

Am I missing something?