Y yzeflores Member Oct 18, 2020 #1 So I used CLV for my project and I wanted that when an item is clicked, it will start another activity... but even tho there were no errors on my code it does not work... what am I missing? here is my code: B4X: Sub CustomListGr1_ItemClick (Index As Int, Value As Object) If Value = "Attendance" Then StartActivity(AttendanceList) End If I used this code in ListView and it worked just fine but when I used it in CLV it doesn't.
So I used CLV for my project and I wanted that when an item is clicked, it will start another activity... but even tho there were no errors on my code it does not work... what am I missing? here is my code: B4X: Sub CustomListGr1_ItemClick (Index As Int, Value As Object) If Value = "Attendance" Then StartActivity(AttendanceList) End If I used this code in ListView and it worked just fine but when I used it in CLV it doesn't.
Erel B4X founder Staff member Licensed User Longtime User Oct 19, 2020 #2 Put a breakpoint and see what happens. Upvote 0
Y yzeflores Member Oct 19, 2020 #3 Erel said: Put a breakpoint and see what happens. Click to expand... how do I put a breakpoint? Upvote 0
mangojack Expert Licensed User Longtime User Oct 20, 2020 #4 B4A Documentation www.b4x.com Specifically ... B4X IDE Section 4.22 - Breakpoints https://www.b4x.com/guides/B4XIDE/?page=69 Upvote 0
B4A Documentation www.b4x.com Specifically ... B4X IDE Section 4.22 - Breakpoints https://www.b4x.com/guides/B4XIDE/?page=69
Y yzeflores Member Nov 3, 2020 #5 mangojack said: B4A Documentation www.b4x.com Specifically ... B4X IDE Section 4.22 - Breakpoints https://www.b4x.com/guides/B4XIDE/?page=69 Click to expand... I did the breakpoint but still... it won't start the activity (((( Upvote 0
mangojack said: B4A Documentation www.b4x.com Specifically ... B4X IDE Section 4.22 - Breakpoints https://www.b4x.com/guides/B4XIDE/?page=69 Click to expand... I did the breakpoint but still... it won't start the activity ((((
mangojack Expert Licensed User Longtime User Nov 3, 2020 #6 yzeflores said: I did the breakpoint but still... it won't start the activity (((( Click to expand... Upload a simple example that shows your problem. File > Export as Zip Upvote 0
yzeflores said: I did the breakpoint but still... it won't start the activity (((( Click to expand... Upload a simple example that shows your problem. File > Export as Zip
Y yzeflores Member Nov 3, 2020 #7 B4X: If Index = 0 Then StartActivity(AttendanceList) End If I found out the problem Sir. I shouldn't have used Value because it finally worked when I changed it into Index. Thank you very much for answering my questions you all have been very helpful to me as a beginner. Upvote 0
B4X: If Index = 0 Then StartActivity(AttendanceList) End If I found out the problem Sir. I shouldn't have used Value because it finally worked when I changed it into Index. Thank you very much for answering my questions you all have been very helpful to me as a beginner.