realbasic-nug
[Top] [All Lists]

Re: Listbox, cell(i,j).TypeEditable

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Listbox, cell(i,j).TypeEditable
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Mon, 31 Jan 2005 16:55:13 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE247336 dot 6AFC%rovo at l4a dot info>
At 11:43 PM +0100 1/31/05, Ronald Vogelaar wrote:

How can I quickly set all cells in a listbox to TypeEditable? I tried the
following, but it gave me an outofboundsexception:

  for i=0 to listbox1.columncount
    listbox1.columntype(i)=Listbox.TypeEditable
  next

That's because you're going one column too far. If ColumnCount = 5, then you have columns 0 through 4, not 0 through 5.

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>