Hi!
I am surely doing something wrong, so i hope someone will be so kind to explain me why it is not working.
I use this in a code module:
Active page is: Page1000
Tableview is initialized in the same module and result is that ShowActivity0050 is not firing
If i made a direct call like the above commented "Fixi0050.ShowActivity0050" then i get then sub working, but the related sub _Resize of code module Fixi0050 doesn't work as any other private sub.
Fixi0050.ShowActivity0050 is already declared as Public.
If i put the calling code in a normal sub like:
it works fine....
It seems that Tableview takes a specific kind of ownership when calling sub.
Thank you all for the attention.
I am surely doing something wrong, so i hope someone will be so kind to explain me why it is not working.
I use this in a code module:
Active page is: Page1000
B4X:
Private Sub LstMenu_SelectedChanged (SectionIndex As Int, Cell As TableCell)
Dim tlst As TableView
Dim lst As List
tlst=Sender
Dim tcs As TableCell
lst = tlst.GetItems(SectionIndex)
For Indice=0 To lst.Size -1
tcs=lst.Get(Indice)
If tcs.Text.ToString=Cell.Text.ToString Then
Exit
End If
Next
Page1000.ResignFocus
If SubExists(Fixi0050,"ShowActivity0050",1) Then
CallSubDelayed2(Fixi0050,"ShowActivity0050",Indice)
'Fixi0050.ShowActivity0050
End If
End Sub
Tableview is initialized in the same module and result is that ShowActivity0050 is not firing
If i made a direct call like the above commented "Fixi0050.ShowActivity0050" then i get then sub working, but the related sub _Resize of code module Fixi0050 doesn't work as any other private sub.
Fixi0050.ShowActivity0050 is already declared as Public.
If i put the calling code in a normal sub like:
B4X:
Private Sub Lbl_Click
Indice = 3
Page1000.ResignFocus
If SubExists(Fixi0050,"ShowActivity0050",1) Then
CallSubDelayed2(Fixi0050,"ShowActivity0050",Indice)
'Fixi0050.ShowActivity0050
End If
End Sub
it works fine....
It seems that Tableview takes a specific kind of ownership when calling sub.
Thank you all for the attention.
Last edited: