OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: andrew on January 25, 2013, 09:13:47 AM

Title: NIL value not allowed???
Post by: andrew on January 25, 2013, 09:13:47 AM
im at a loss here
this was working for the last 2 weeks now all the sudden its not working


(defun c:newrelease_Form3_TextButton3_OnClicked (/)
   (startapp "Notepad.exe" datafile)
   (dcl_Control_SetCaption newrelease_Form3_Label6 "Refresh list after file has been saved")
)


or


(defun c:newrelease_Form3_TextButton3_OnClicked (/)
   (dcl_Control_SetCaption newrelease_Form3_Label6 "Refresh list after file has been saved")
   (startapp "Notepad.exe" datafile)
)



Title: Re: NIL value not allowed???
Post by: owenwengerd on January 25, 2013, 10:01:38 AM
You're going to have to describe the problem if you want help. "Not working" is not working.
Title: Re: NIL value not allowed???
Post by: andrew on January 25, 2013, 10:24:16 AM
when i click the button on my project, the label is supposed to set per the first quoted code in the first post, it doesnt set. I changed it around to the second quoted code, still doesnt set.
I get the error nill value not allowed all the sudden.

It was working up until today.
do you see anything wrong with the code i posted?

Title: Re: NIL value not allowed???
Post by: roy_043 on January 25, 2013, 10:53:47 AM
With [Control Browser > Properties > Caption] check if newrelease_Form3_Label6 is still pointing to a control.
Title: Re: NIL value not allowed???
Post by: owenwengerd on January 25, 2013, 11:01:17 AM
Quote from: andrew on January 25, 2013, 10:24:16 AM
do you see anything wrong with the code i posted?

I don't see anything wrong with the code you posted. You didn't say *which* value is NIL, but assuming there is no other code executing, the only possible NIL value is newrelease_Form3_Label6. If that symbol is NIL, then the most likely cause is that the ODCL project is either not loaded or does not define that symbol name.