On 2/9/07, Tim Jones <[EMAIL PROTECTED]> wrote:
On Feb 9, 2007, at 12:42 PM, Peter K. Stys wrote:> I have a list box with several columns, 2 of which are editable. When > I double-click an editable cell to make it active (text selected), > then push a test button with myListBox.DeleteAllRows, all rows are > deleted except the text in the cell that was editable remains visible > in the listbox. Interesting that you're seeing what you see. In a simple test here of a Listbox with Col 0 set to Editable, if I execute a "DeleteAllRows" while a cell is in edit mode, the listbox is cleared. Granted my test was short - ListBox1 and PushButton1 on a Window Pushbutton1.Action: ListBox1.DeleteAllRows ListBox1.Open: Dim i As Integer Me.ColumnType(0) = ListBox.TypeEditable For i = 0 To 10 Me.AddRow Str(i) Next That works as expected even if I add a lot of text to the current edit cell. > This only happens in RB2007r1; same code recompiled with RB2006r4 does > not exhibit this anomaly. Just tested that on 2006r4 and 2007r1 with the same results. > Has anyone seen this and how do I delete all rows AND make the > selected text disappear as well. Is there possibly some other setting that you're making to the listbox that may be interfering?
I too tried a simple test like yours and I cannot replicate this. It only happens in my "large" app. The fact that I did not see this in 2006r4 suggests it's not my code, but the 2007r1 compiler tho. P. -- ------------------------------------------------------------------------------- Peter K. Stys, MD Professor of Medicine(Neurology), Senior Scientist Ottawa Health Research Institute, Div. of Neuroscience Ottawa Hospital / University of Ottawa Ontario, CANADA tel: (613)761-5444 fax: (613)761-5330 http://www.ohri.ca/profiles/stys.asp ------------------------------------------------------------------------------- _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
