Since I don't have enough details, I can only guess... maybe this will help.

untested
 Code:
dim $checks[0]
$list="Kix","VB","C++"
for each $program in $list
  if verify($program)
    redim preserve $checks[$i]
    $checks[$i]="Item" + $i + ":  " + $program + " Check"
 
    $i=$i+1
  endif
next

For each $item in $checks
  $GBLabel.text=$item  
next

function Verify($program)
  ;check software
  ;if $somevalue="Not Valid"
  ;  $Verify=0
  ;else
  ;  $verify=1
  ;endif
endfunction


You could put the GBLabel stuff inside the first loop without the need the need for the second loop... just not really sure what makes the most sense.


Edited by Allen (2012-03-20 06:56 PM)