I'm having a strange problem. For context, I'm in the middle of a Service module and create an instance of a class:
And in the class it's something like:
The problem is that when I type "oItem." and get the autocomplete popup window, it doesn't show the "setID" sub. Even if I start typing it like "oItem.set" and do ctrl+space, it doesn't appear. BUT, if I finish typing it all out and add the first paren, it brings up the parameter list.
I have several classes and they all seem to have this problem. Is this a bug, or is there something I need to add to the class to have it autocomplete correctly?
B4X:
Public Sub createItem
Dim oItem as Item
oItem.initialize
oItem.setID("123123123")
End Sub
And in the class it's something like:
B4X:
'Item class
Sub Class_Globals
Private id As String
End Sub
'Initializes the object. You can add parameters to this method if needed.
Public Sub Initialize
id = CallSub(mainService, "generateUUID")
appVersion = mainService.APP_VERSION
End Sub
Public Sub setID(sUUID As String) As Boolean
If (CallSub2(mainService, "isUUID", sUUID)) Then
id = sUUID
Return True
Else
Return False
End If
End Sub
The problem is that when I type "oItem." and get the autocomplete popup window, it doesn't show the "setID" sub. Even if I start typing it like "oItem.set" and do ctrl+space, it doesn't appear. BUT, if I finish typing it all out and add the first paren, it brings up the parameter list.
I have several classes and they all seem to have this problem. Is this a bug, or is there something I need to add to the class to have it autocomplete correctly?