Android Question How can I read some properties from a variable?

Myr0n

Active Member
Licensed User
Longtime User
I am trying to guess how to read some properties from a variable.
tempScreenS.jpg

My code is
B4X:
    Dim db As JackcessDatabase
    db.Open(File.DirRootExternal & "/Northwind.mdb")
    Dim Table As JackcessTable
    Table.Initialize(db.GetTable("FieldTypes"))
    Table.Reset
The properties that I want to read are from the variable Table, like the screenshot, and I am interesting in one of those properties, that is highlighted on the screenshot.
Could you help me please.

Thank you so much.
 

Myr0n

Active Member
Licensed User
Longtime User
Ok, thank you Erel,
Before to post this message I tried with JavaObject but I did not have good results.
I tried with the actual wrapped library Jackcess but the problem that I found is that there is not include a method getColumns() that exists in java.

I tried with
Dim JO as JavaObject
Log(jo.RunMethod("getcolumns",Array As Object("")))

the previous said code gave the error:
java.lang.RuntimeException: Method: getcolumns not found in: anywheresoftware.b4a.objects.JackcessDatabase$JackcessTable

and the next one,
Log(jo.GetField("_columns"))

said:
java.lang.RuntimeException: Field: _columns not found in: anywheresoftware.b4a.objects.JackcessDatabase$JackcessTable

anyone has a similar code where I can do some test I figure out, please.

Thank you
 
Upvote 0

Myr0n

Active Member
Licensed User
Longtime User
Thank you Erel, I start working on it.
 
Upvote 0
Top