<<
  Set var vColName = ('#' + CTXT(.vCol))
  Select &vColName into vItemText From SourceTable Where Count = 1
  If SQLCODE <> 0 then -- no more columns
     Break
  Endif
>>

Son of a gun, that's a clever way to do it.  Much better than mine.
--
Larry

Reply via email to