﻿// reset list
Clear V[codelist]

// row index
Set V[k] 0

label next_row
if V[k<&V[codetable.rowcount]]
  Set V[k] &V[k] + 1
  if V[codetable.stat.rowselection.&V[k]=X]
    if V[codelist]
      Set V[codelist] "&V[codelist],"
    endif
    
    Set V[codelist] "&V[codelist]&V[codetable.code.&V[k]]"
    
  endif
  
  goto next_row 
  
endif

Return
