iOS Question B4i and Reflection

F.Campanella

Member
Licensed User
Longtime User
Hi,

I have the B4A code that use Reflection (Javaobject).
Are there the same library or methods that I can use in the b4i?
If no, I will find in the future?

Thank u

F.
 

F.Campanella

Member
Licensed User
Longtime User
Hi Stevel05,
thanks for your answer.
I'm sorry, I made the wrong question:
I need to know if there is a library or an object that works like Javaobject in B4A. Thanks for your patience ;-)
 
Upvote 0

F.Campanella

Member
Licensed User
Longtime User
This is my conde in B4A

pObject is B4A Class

Public Sub LoadCollection(pObject As Object) As Map

Dim Query As String
Dim Rf As JavaObject = pObject

Query = "Select * from " & Rf.RunMethod("_getdbtable", Null)
If Rf.RunMethod("_getdbfilter", Null) <> "" Then
Query = Query & " where " & Rf.RunMethod("_getdbfilter", Null)
End If

....
....


The pObject class Contain a property DBTable and I read content through Rf.RunMethod("_getdbtable",Null)

Although I have to rewrite the code for B4i, Is there a way to do the same procedure?

Thanks!!!
 
Upvote 0

F.Campanella

Member
Licensed User
Longtime User
Thank you Erel!!!
Good!!!
I don't know that CallSub could do this!!!
I've resolved! Now I can use my library in both environments!.
 
Upvote 0
Top