Android Question Current Declaration does not match previous one

beelze69

Active Member
Licensed User
Longtime User
Hi!

I am implementing a Delete Operation on a SqlLite database via a button control.

In the click event I have written:


B4X:
Dim sf As Object = xui.Msgbox2Async("Do you really want to delete the selected row?", "MyApp Delete", "Yes", "", "No", Null)
    Wait For (sf) Msgbox_Result (Result As Int)
    If Result = xui.DialogResponse_Positive Then
        Private mapWhere As Map
        mapWhere.Initialize
        mapWhere.Put("rowid",  lstRowID.Get(SelectedRow))
        DBUtils.DeleteRecord(SQL1, DBTableName, mapWhere)
        Log("Deleted!!!")
      
        ShowTableInWebView    'shows the updated table
        ReadDatabaseInTable    'rereads the data
    End If


In the IDE I am getting the error message

'Current declaration does not match previous one'

Compilation gives me same error message

I tried declaring XUI as Public in the Process Global (default is Private) but that did not solve the problem.

Where am I going wrong ?

Ps. help..


Thanks...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…