/ RowNumber: return the ordinal number of the current row. */ /
| 255 | /* RowNumber: return the ordinal number of the current row. */ |
| 256 | /***********************************************************************/ |
| 257 | int TDBFIX::RowNumber(PGLOBAL g, bool b) |
| 258 | { |
| 259 | if (Txfp->GetAmType() == TYPE_AM_DBF) { |
| 260 | if (!b && To_Kindex) { |
| 261 | /*****************************************************************/ |
| 262 | /* Don't know how to retrieve Rows from DBF file address */ |
| 263 | /* because of eventual deleted lines still in the file. */ |
| 264 | /*****************************************************************/ |
| 265 | snprintf(g->Message, sizeof(g->Message), MSG(NO_ROWID_FOR_AM), |
| 266 | GetAmName(g, Txfp->GetAmType())); |
| 267 | return 0; |
| 268 | } // endif To_Kindex |
| 269 | |
| 270 | if (!b) |
| 271 | return Txfp->GetRows(); |
| 272 | |
| 273 | } // endif DBF |
| 274 | |
| 275 | return Txfp->GetRowID(); |
| 276 | } // end of RowNumber |
| 277 | |
| 278 | /***********************************************************************/ |
| 279 | /* FIX tables don't use temporary files except if specified as do it. */ |
no test coverage detected