iOS Question B4i and Reflection

F.Campanella

Member
Licensed 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.
 

stevel05

Expert
Licensed User
B4i has NativeObject, which is similar to JavaObject. Android and iOS are completly different OS's so the methods, and how you access them, are also totally different.

A good place to start is the ios developer library : https://developer.apple.com/library/ios/navigation/
 

F.Campanella

Member
Licensed 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 ;-)
 

F.Campanella

Member
Licensed 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!!!
 

F.Campanella

Member
Licensed 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!.
 
Top