]> source.dussan.org Git - poi.git/commitdiff
Add missing setCurrentRow calls to documentation
authorNick Burch <nick@apache.org>
Thu, 13 Dec 2007 13:17:49 +0000 (13:17 +0000)
committerNick Burch <nick@apache.org>
Thu, 13 Dec 2007 13:17:49 +0000 (13:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@603916 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/hssf/eval.xml

index 548df78e763400e5a532c9946e4d95d634671831..d697eb082bcede2e093273276f5a8640e30ef7d0 100644 (file)
@@ -63,6 +63,8 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
 CellReference cellReference = new CellReference("B3"); 
 HSSFRow row = sheet.getRow(cellReference.getRow());
 HSSFCell cell = row.getCell(cellReference.getCol()); 
+
+evaluator.setCurrentRow(row);
 HSSFFormulaEvaluator.CellValue cellValue = evaluator.evaluate(cell);
 
 switch (cellValue.getCellType()) {
@@ -106,7 +108,7 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
 CellReference cellReference = new CellReference("B3"); 
 HSSFRow row = sheet.getRow(cellReference.getRow());
 HSSFCell cell = row.getCell(cellReference.getCol()); 
-
+evaluator.setCurrentRow(row);
 
 if (cell!=null) {
        switch (<strong>evaluator.evaluateInCell</strong>(cell).getCellType()) {