netkomm Active Member Licensed User Longtime User Jun 27, 2016 #1 Hello guys, I have this snippet of code Code: If celle(colo,riga).hClue = Null Then CLUE.Text = "" Else CLUE.Text = Words(celle(colo,riga).hClue).clue End If and when I debug the code, inside celle(colo,riga).hClue there is a "null" value but it's not matched and goes into trying to perform illegal actions and crashes out. It does not help to write the other way around matching using <>. It does always go into the wrong option... Thanks for your help. p.s.: using the latest version of B4A (6.0)
Hello guys, I have this snippet of code Code: If celle(colo,riga).hClue = Null Then CLUE.Text = "" Else CLUE.Text = Words(celle(colo,riga).hClue).clue End If and when I debug the code, inside celle(colo,riga).hClue there is a "null" value but it's not matched and goes into trying to perform illegal actions and crashes out. It does not help to write the other way around matching using <>. It does always go into the wrong option... Thanks for your help. p.s.: using the latest version of B4A (6.0)
Erel B4X founder Staff member Licensed User Longtime User Jun 27, 2016 #2 What is the type of hClue? Upvote 0
netkomm Active Member Licensed User Longtime User Jun 27, 2016 #3 Hi, It's an INT. Tested with > 0 and <> NULL - same results. Upvote 0
DonManfred Expert Licensed User Longtime User Jun 27, 2016 #4 netkomm said: It's an INT Click to expand... then i dont believe netkomm said: celle(colo,riga).hClue Click to expand... is a int What is celle(x,y)??? I guess celle is an array of custom TYPE? Upvote 0
netkomm said: It's an INT Click to expand... then i dont believe netkomm said: celle(colo,riga).hClue Click to expand... is a int What is celle(x,y)??? I guess celle is an array of custom TYPE?
netkomm Active Member Licensed User Longtime User Jun 27, 2016 #5 Yes is a prepopulated custom TYPE. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2016 #6 Try to reproduce it in a small project and upload the project. Upvote 0