hookshy Well-Known Member Licensed User Longtime User Aug 26, 2014 #1 Question or wish : It would be great to confirm a warning ! and hide it from the vertical scroll bar The error log returns a warning on this sub : Return type should be set explicitly warning #3 what is wrong with this statement... Code: Sub pnl_adv_Touch (Action As Int, X As Float, Y As Float) Return True End Sub *******************8 uninitialised icos ... but the icos animation will not ask initialization by icos.initialise *********** here the warning is : Not all path return a value Code: sub test(textdiac as string) as string If textdiac.Contains(Chr(252)) Then textdiac=textdiac.Replace(Chr(252),"u") End If If textdiac.Contains(Chr(223)) Then textdiac=textdiac.Replace(Chr(223),"a") End If Return textdiac end sub
Question or wish : It would be great to confirm a warning ! and hide it from the vertical scroll bar The error log returns a warning on this sub : Return type should be set explicitly warning #3 what is wrong with this statement... Code: Sub pnl_adv_Touch (Action As Int, X As Float, Y As Float) Return True End Sub *******************8 uninitialised icos ... but the icos animation will not ask initialization by icos.initialise *********** here the warning is : Not all path return a value Code: sub test(textdiac as string) as string If textdiac.Contains(Chr(252)) Then textdiac=textdiac.Replace(Chr(252),"u") End If If textdiac.Contains(Chr(223)) Then textdiac=textdiac.Replace(Chr(223),"a") End If Return textdiac end sub
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2014 #2 1. You should change the sub signature to: Code: Sub pnl_adv_Touch (Action As Int, X As Float, Y As Float) As Boolean '<------- return type 2. I don't get any warning with this sub. Upvote 0
1. You should change the sub signature to: Code: Sub pnl_adv_Touch (Action As Int, X As Float, Y As Float) As Boolean '<------- return type 2. I don't get any warning with this sub.