Olaan Expert Licensed User Longtime User Dec 28, 2013 #1 Hi all, I've modified the madalformexample app in order to create my calendar alike B4A's anotherdatepicker,I declared this in the class module(jThaicalendar) by generate members clicked belows: Private TopPanel As Pane Click to expand... It's warning say "TopPanel is declared wrong type" Attachments DeclaredWrongType.zip DeclaredWrongType.zip 2.6 KB · Views: 449
Hi all, I've modified the madalformexample app in order to create my calendar alike B4A's anotherdatepicker,I declared this in the class module(jThaicalendar) by generate members clicked belows: Private TopPanel As Pane Click to expand... It's warning say "TopPanel is declared wrong type"
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2013 #2 Code: Copy Public Sub Show As Paint frm.ShowAndWait 'Return colorsMap.Get(lstColors.SelectedItem) If lblSelectedDay.Text <> "" Then Return lblSelectedDay.Text End If End Sub A String is not a Paint. You should either convert it to a Paint or change the return type to String. Upvote 0
Code: Copy Public Sub Show As Paint frm.ShowAndWait 'Return colorsMap.Get(lstColors.SelectedItem) If lblSelectedDay.Text <> "" Then Return lblSelectedDay.Text End If End Sub A String is not a Paint. You should either convert it to a Paint or change the return type to String.
Olaan Expert Licensed User Longtime User Dec 29, 2013 #3 Hi Erel, I'm sorry that I'm forgot to change my coding,I need to ask you about the type of TopPanel. Attachments MessageWarning.png 110.9 KB · Views: 475 DeclaredWrongType2.zip DeclaredWrongType2.zip 2.6 KB · Views: 410 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 29, 2013 #4 You should post the logs as text instead of a screenshot. This issue is fixed for the next update. For now you will need to compile it in Release mode. Upvote 0
You should post the logs as text instead of a screenshot. This issue is fixed for the next update. For now you will need to compile it in Release mode.