I have this code
I get this
Added -->to st
Timer1 - 8
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
[IsInitialized=false, address=192.168.10.15, bDeleted=false
, bEnabled=false, cType=http, delay=0
, find=mdaemon, id=0, name=to st
, password=null, port=90, username=null
]
Error occurred on line: 636 (Main)
java.lang.RuntimeException: Field: bDeleted not found in: java.lang.String
at anywheresoftware.b4a.shell.Shell$FieldCache.getField(Shell.java:908)
at anywheresoftware.b4a.shell.Shell.getField(Shell.java:678)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:259)
at b4a.checkserver.main._loadsettings(main.java:699)
at b4a.checkserver.main._activity_create(main.java:480)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at b4a.checkserver.main.afterFirstLayout(main.java:102)
at b4a.checkserver.main.access$000(main.java:17)
at b4a.checkserver.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Any ideas?
B4X:
Sub Process_Globals
Type stService ( id As Int, bDeleted As Boolean, bEnabled As Boolean, name As String, address As String, port As Int, username As String, password As String, find As String, cType As String, delay As Int )
end sub
Sub LoadSettings
Private map As stService
For i = 0 To mapCheckList.Size - 1
map = mapCheckList.GetValueAt(i)
Log( map ) 'shows ok
If map.bDeleted = False Then
end if
next
end sub
I get this
Added -->to st
Timer1 - 8
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
[IsInitialized=false, address=192.168.10.15, bDeleted=false
, bEnabled=false, cType=http, delay=0
, find=mdaemon, id=0, name=to st
, password=null, port=90, username=null
]
Error occurred on line: 636 (Main)
java.lang.RuntimeException: Field: bDeleted not found in: java.lang.String
at anywheresoftware.b4a.shell.Shell$FieldCache.getField(Shell.java:908)
at anywheresoftware.b4a.shell.Shell.getField(Shell.java:678)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.debug.Debug.delegate(Debug.java:259)
at b4a.checkserver.main._loadsettings(main.java:699)
at b4a.checkserver.main._activity_create(main.java:480)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:342)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at b4a.checkserver.main.afterFirstLayout(main.java:102)
at b4a.checkserver.main.access$000(main.java:17)
at b4a.checkserver.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Any ideas?