library/database/class.dataset.php
public function Value($ColumnName, $DefaultValue = NULL) {
      if($Row = $this->NextRow()) {
         if(is_array($ColumnName)) {
            $Result = array();
            foreach($ColumnName as $Name => $Default) {
               if(is_object($Row) && property_exists($Row, $Name))
                     return $Row->$Name;
               elseif(is_array($Row) && array_key_exists($Name, $Row))
                     return $Row[$Name];
               else
                  $Result[] = $Default;
            }
            return $Result;
         } else {
            if(is_object($Row) && property_exists($Row, $ColumnName))
                  return $Row->$ColumnName;
            elseif(is_array($Row) && array_key_exists($ColumnName, $Row))
                  return $Row[$ColumnName];
         }
		}
      if(is_array($ColumnName))
         return array_values($ColumnName);
		return $DefaultValue;
   }
public function Value($ColumnName, $DefaultValue = NULL) {
      if($Row = $this->NextRow()) {
         if(is_array($ColumnName)) {
            $Result = array();
            foreach($ColumnName as $Name => $Default) {
               if(is_object($Row) && property_exists($Row, $Name))
                     return $Row->$Name;
               elseif(is_array($Row) && array_key_exists($Name, $Row))
                     return $Row[$Name];
               else
                  $Result[] = $Default;
            }
            return $Result;
         } else {
            if(is_object($Row) && property_exists($Row, $ColumnName))
                  return $Row->$ColumnName;
            elseif(is_array($Row) && array_key_exists($ColumnName, $Row))
                  return $Row[$ColumnName];
         }
		}
      if(is_array($ColumnName))
         return array_values($ColumnName);
		return $DefaultValue;
   }
public function Value ( $ ColumnName , $ DefaultValue = NULL ) { if ( $ Row = $ this -> NextRow ( ) ) { if ( is_array ( $ ColumnName ) ) { $ Result = array ( ) ; foreach ( $ ColumnName as $ Name => $ Default ) { if ( is_object ( $ Row ) && property_exists ( $ Row , $ Name ) ) return $ Row -> $ Name ; elseif ( is_array ( $ Row ) && array_key_exists ( $ Name , $ Row ) ) return $ Row [ $ Name ] ; else $ Result [ ] = $ Default ; } return $ Result ; } else { if ( is_object ( $ Row ) && property_exists ( $ Row , $ ColumnName ) ) return $ Row -> $ ColumnName ; elseif ( is_array ( $ Row ) && array_key_exists ( $ ColumnName , $ Row ) ) return $ Row [ $ ColumnName ] ; } } if ( is_array ( $ ColumnName ) ) return array_values ( $ ColumnName ) ; return $ DefaultValue ; }
Advances to the next row and returns the value rom a column.

@param string $ColumnName The name of the column to get the value from.
@param string $DefaultValue The value to return if there is no data.
@return mixed The value from the column or $DefaultValue.
Advances to the next row and returns the value rom a column .