B4J Question TableView (Line: 0) null

TAK

Member
Licensed User
Hello,
I need a simple TableView for my DB, but i get an error. Any idea how to fix this problem?

Thx

B4X:
Program started.
An error occurred:
(Line: 0) null
java.lang.Exception: Sub appstart signature does not match expected signature.
public static anywheresoftware.b4a.pc.RemoteObject b4j.example.main_subs_0._appstart(anywheresoftware.b4a.pc.RemoteObject,anywheresoftware.b4a.pc.RemoteObject) throws java.lang.Exception
 

stevel05

Expert
Licensed User
The signature for AppStart sub in Main should be:

Sub AppStart (Form1 As Form, Args() As String)

The error message suggests it isn't, have you changed it?
 

stevel05

Expert
Licensed User
Can you zip and post your project
 

stevel05

Expert
Licensed User
It looks like you've created a NonUI App, which won't support a Form. Create a new UI App, then copy your code into it.
 
  • Like
Reactions: TAK
Top