Author Topic: ReturnPressed Event  (Read 82 times)

0 Members and 1 Guest are viewing this topic.

jonathann3891

  • Mosquito
  • Posts: 9
ReturnPressed Event
« 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?