Hi Terry, Barrie
  I've been interested in your listbox question/answer set over the last bit. 
I've been trying to set up a two column listbox that has checkboxes in col 0 
and text in col 1. I've built a crude question set randomizer for a teacher 
friend of mine and am refining it  a little. Initially I just used a letter in 
cell(i,0) and tracked by array. (By the checkbox I am allowing the user to pick 
the questions that are to stay 'unrandomized')
   
   In the listbox open I have:  
   
  dim i as integer
  for i = 0 to 99
    me.AddRow ""
    me.CellType(i,0)=2 
      check(i) = false
    me.cell(i,1) = "Dummy  Text"
  next

  "Dummy Text" is in place of array elements holding questions that a method 
elsewhere randomizes. 
   
  check() is an array of boolean to track if the cell(i,0) has been checked 
(true / false). 
   
  Obviously filled with initial false. I did this because I can't find how to 
access the true/false property of the checkbox when in a cell. It would be nice 
to just check the condition of the checkbox instead of dragging all these 
arrays around.
   
  thanks
  Derek
   
  rb206r2 XP
  
Barrie Jones <[EMAIL PROTECTED]> wrote:
  Right again. It was an out of bounds exception. I finally found the 
error message at the bottom of the window (as you suggested). Thanks 
again.
Barrie

On May 9, 2006, at 12:05 AM, Terry Ford wrote:

>
> On May 8, 2006, at 8:57 PM, Barrie Jones wrote:
>
>> Terry, you are spot on. I had not entered anything in the list 
>> box. Now it is working. Thankyou.
>
> You can also use me.ColumnType(0)=2 before you addrow(s) if you 
> wish to set all rows in the column to be a checkbox type.
>
> You probably got an OutOfBounds error for the cell method.
>
> Terry
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> 
>
> Search the archives of this list here:
> 

_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:



                
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.
_______________________________________________
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>

Reply via email to