/*
   Gary White's custom array class, which has 
   two new methods: rowCount and colCount ...
*/
class gwArray of Array
   /*
      set procedure to gwArray.cc addi
      a = new gwArray( 4, 2 )
      ? a.colCount() // 2
      ? a.rowCount() // 4
   */
   function rowCount
      // returns null for > 2 dimensions
      local nCount
      if this.size > 0
         nCount = this.subscript( this.size, 1 )
      elseif this.dimensions > 2
         nCount = null
      else
         nCount = 0
      endif
   return nCount

   function colCount
      // returns null for > 2 dimensions
      local nCount
      if this.size > 0
         nCount = this.subscript( this.size, 2 )
      elseif this.dimensions > 2
         nCount = null
      else
         nCount = 0
      endif
   return nCount
endclass

