B4J Question ERROR with jRDC2 with B4a Client

ermales

Member
Licensed User
Longtime User
I followed the tutorial https://www.b4x.com/android/forum/t...-rdc-remote-database-connector.61801/#content
It works correctly when running everything as in the main activity, but when I try to do sql queries in another activity I get this error


if the same code if I put it back in the main the error is removed.
 

OliverA

Expert
Licensed User
Longtime User
Both DBResult and DBCommand Type still need to be declared in Process_Globals of Main, not the Activity
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
I do not get it
In your B4A application that is not working with jRDC2, where do you have
B4X:
   Type DBResult (Tag As Object, Columns As Map, Rows As List)
   Type DBCommand (Name As String, Parameters() As Object)
?
Those two declarations must be in the "Sub Process_Globals" of Main, not your Activity. Plus, they need to be declared just like they are (including casing), since Type's are case sensitive (unlike everything else).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…