NIL value not allowed???

Started by andrew, January 25, 2013, 09:13:47 AM

Previous topic - Next topic

andrew

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)
)




owenwengerd

You're going to have to describe the problem if you want help. "Not working" is not working.

andrew

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?


roy_043

With [Control Browser > Properties > Caption] check if newrelease_Form3_Label6 is still pointing to a control.

owenwengerd

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.