Hello Klaus...I tested the class you sent..Now I am getting the following error on initial loading itself, pointing to line 689 of the class. I have 9 columns in my tables.
On fremoving the line 689, which is as follows,all well again
lbls(0).SetLayout(0, lbls(col).Top, mFirstColumnWidth, cRowHeight - cLineWidth)
Error log as follows:
Error occurred on line: 689 (Table)
java.lang.ArrayIndexOutOfBoundsException: length=9; index=9
at harry.logbook.table._setcolumnswidths(table.java:1614)
at harry.logbook.table._addrowautomaticwidth(table.java:662)
at harry.logbook.main._tableview(main.java:1065)
at harry.logbook.main._emptytableschk(main.java:567)
at harry.logbook.main._activity_create(main.java:503)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at harry.logbook.main.afterFirstLayout(main.java:104)
at harry.logbook.main.access$000(main.java:17)
at harry.logbook.main$WaitForLayout.run(main.java:82)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:221)
at android.app.ActivityThread.main(ActivityThread.java:7520)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
** Activity (main) Resume **