dcl_Control_SetText passed NIL

Started by Vaidas, December 21, 2009, 10:54:01 PM

Previous topic - Next topic

Vaidas

Hello,

Just testing. The same problem as at 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

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Kerry

#2
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
Perfection is not optional.
My other home is TheSwamp

Kerry


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.
Perfection is not optional.
My other home is TheSwamp

Vaidas

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.