On May 9, 2006, at 10:24 AM, D Prowse wrote:

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.

See Listbox.CellCheck.

Charles Yeomans
_______________________________________________
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