I have this in starter service:
I want to call it with callsub:
This code is not working! how can I write it?
B4X:
dim a as int=Starter.SQL1.ExecQuerySingleResult("select count(*) from products")
Starter.SQL1.ExecQuery2("select * from products where id=? and status=?",Array as String(1,0))
B4X:
Dim a As Int=CallSub2("starter","SQL1.ExecQuerySingleResult","select count(*) from products")
CallSubDelayed3("starter","SQL1.ExecQuery2","select * from products where id=? and status=?",Array as String(1,0))