[Gambas-user] TableView.Clear in Gambas3

wig wig at ...1809...
Fri Jun 13 09:51:44 CEST 2014


I tried to search for other mention of this item, and I might be missing
something, but the Clear function seems to leave one cell "not-cleared" in
my TableView.

Replicate: make a table, with edit and save code, fill some cells, clear
the table with TableView1.Clear

One of the cells stays filled with the same content it had (mostly the
last one that was filled - so I tried to be sure I left the cell after
editing by doing something else on screen, like change a spinbox value).

Version: Gambas 3.4.1 and 3.4.2, on OpenSUSE 13.1/KDE

Demo project included (with screenshots).

FMain :

Public Sub _new()
  TableView1.Columns.Count = 6
  TableView1.Rows.Count = 20
End

Public Sub TableView1_Click()

  Debug TableView1.Column
  Debug TableView1.Row

  TableView1.Edit()

End

Public Sub Form_Open()

End

Public Sub Button1_Click()

  TableView1.Clear

End

Public Sub TableView1_Save(x As Integer, y As Integer, sText As String)

  TableView1[x, y].Text = sText

End



-------------- next part --------------
A non-text attachment was scrubbed...
Name: DemoClearNotAllTable-0.0.1.tar.gz
Type: application/gzip
Size: 96252 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140613/451afe30/attachment.gz>


More information about the User mailing list