OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Vaidas on December 21, 2009, 10:54:01 PM

Title: dcl_Control_SetText passed NIL
Post by: Vaidas on December 21, 2009, 10:54:01 PM
Hello,

Just testing. The same problem as at http://www.opendcl.com/forum/index.php?topic=23.msg107#msg107 (http://www.opendcl.com/forum/index.php?topic=23.msg107#msg107)
but I can't replay to this topic, so starting new one.

Error:
variable argument passed to dcl_Control_SetText was NIL

Lisp passes text to TitleBar, but not to TextBox. The same for several different cases I checked.

Thanks
Title: Re: dcl_Control_SetText passed NIL
Post by: Fred Tomke on December 21, 2009, 11:03:12 PM
Hi, Vaidas, check the name of your cancel event: I read "c:Kitox-Toolset-dcl_FormEmail_TextButtonCancel_OnClicked" in the odcl file and "c:Test-091221_Form1_TextButtonCancel_OnClicked" in the lisp. That must match to make it work.

Fred
Title: Re: dcl_Control_SetText passed NIL
Post by: Kerry on December 21, 2009, 11:09:37 PM
The reason the Textbox is not getting the value of the test-text variable is because the Form EVENT OnInitialize is not turned on in the Events Pane.

added : refer attached
Title: Re: dcl_Control_SetText passed NIL
Post by: Kerry on December 21, 2009, 11:17:36 PM

Vaidas ,

That is an excelent way to test the actions and properties of controls !!

Start small with simple tests till you understand what is happening.

Good sample of the error.
Title: Re: dcl_Control_SetText passed NIL
Post by: Vaidas on December 21, 2009, 11:23:20 PM
Thanks for all, it works now.
Error was on Initialize checkbox. I started from bigger for and after changed it to smaller, but not changed function on Events.