[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DataView.Remove


On 4/15/24 07:13, Philippe Valarcher wrote:
Good morning,
DataView.Remove seems not to make, during a multiple selection, which is explained in the documentation.

Public Sub btnErase3_Click() 'supprime les lignes sélectionnées

DataView1.Remove()
DataView1.Save
DataView1.Update

DataSource1.Save()
DataSource1.Update

End


[System]
Gambas=3.19.90 7e0c9832e (master)

Confirmed with 3.19.1.

It doesn't work with single selection mode either. With DataView.Editable = False, it just silently fails (ie. it does not return True). With .Editable set to True, I get, "Unable to delete record\n Null object".


[System]
Gambas=3.19.1 38fb2444 (stable)


By the way, Philippe, please turn of Return Receipt (Disposition Notification) requests for email messages to the list.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
DataView.RemovePhilippe Valarcher <philippe.valarcher@xxxxxxx>