iOS Question [Solved]iTableView2 Problem ?

RichardN

Well-Known Member
Licensed User
Longtime User
Using the iTableView2 library I am trying to catch a selection in the SelectedChanged event where the DetailText contains an asterisk. Like this....
B4X:
Sub AirportList_SelectedChanged (SectionIndex As Int, Cell As TableCell)

    Private AirportIATA As String = Cell.DetailText.ToString
    
    If AirportIATA.Contains("*") Then Return    'Exit & do nothing
    
    Results.Show(AirportIATA)                   'Do more stuff   
    
End Sub

The error that follows is this:
By trial & error I can isolate the exception to the 'AirportIATA.Contains("*")' line. However, the IDE never highlights that line as the line where the exception has occurred, instead other lines, often ones with no code on them are highlighted. What is going on?
 

RichardN

Well-Known Member
Licensed User
Longtime User
I already tried that. I get an almost identical error log.

The IDE reports error on line 225 which for some reason is the End Sub of the Page_Resize event

 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
I went back & reviewed the documentation again. I had added the iTableView programmatically rather than adding as a custom view from the designer.

To add to my confusion this incorrect method appears to work perfectly well (both for iTableView2 and iUI8) in almost all regards until you come to applying certain string functions to the table cell contents!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…