2001-06-18 15:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2001-06-18 15:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
|
||||
* source/rdd/dbfntx/dbfntx1.c
|
||||
! Bug fixed, related to Bof, Eof flags after seeking
|
||||
! Seek "" works now as in CA-Clipper
|
||||
* Added processing of DBOI_NAME to ntxOrderInfo, so Ordname() works now.
|
||||
|
||||
2001-06-17 22:50 GMT -3 Luiz Rafael Culik <culik@sl.conex.net>
|
||||
*utils/hbmake/hbmake.prg
|
||||
* Fixed an small bug regading the file existence
|
||||
|
||||
@@ -2025,6 +2025,13 @@ static ERRCODE ntxSeek( NTXAREAP pArea, BOOL bSoftSeek, PHB_ITEM pKey, BOOL bFin
|
||||
switch( hb_itemType( pKey ) )
|
||||
{
|
||||
case HB_IT_STRING:
|
||||
if( pKey->item.asString.length == 0 )
|
||||
{
|
||||
hb_ntxKeyFree( pKey2 );
|
||||
retvalue = SELF_GOTOP( ( AREAP ) pArea );
|
||||
pArea->fFound = TRUE;
|
||||
return retvalue;
|
||||
}
|
||||
hb_itemCopy( pKey2->pItem, pKey );
|
||||
break;
|
||||
case HB_IT_INTEGER:
|
||||
@@ -2075,6 +2082,7 @@ static ERRCODE ntxSeek( NTXAREAP pArea, BOOL bSoftSeek, PHB_ITEM pKey, BOOL bFin
|
||||
pArea->lpCurIndex = NULL;
|
||||
SELF_GOBOTTOM( ( AREAP ) pArea );
|
||||
retvalue = SELF_SKIPRAW( ( AREAP ) pArea, 1 );
|
||||
pArea->fBof = FALSE;
|
||||
pArea->lpCurIndex = lpCurIndex;
|
||||
return retvalue;
|
||||
}
|
||||
@@ -2601,6 +2609,18 @@ static ERRCODE ntxOrderInfo( NTXAREAP pArea, USHORT uiIndex, LPDBORDERINFO pInfo
|
||||
}
|
||||
hb_itemPutC( pInfo->itmResult, "" );
|
||||
break;
|
||||
case DBOI_NAME:
|
||||
if( pArea->lpNtxIndex )
|
||||
{
|
||||
pIndex = ntxFindIndex( pArea , pInfo->itmOrder );
|
||||
if( pIndex )
|
||||
{
|
||||
hb_itemPutC( pInfo->itmResult, pIndex->CompoundTag->TagName );
|
||||
return SUCCESS;
|
||||
}
|
||||
}
|
||||
hb_itemPutC( pInfo->itmResult, "" );
|
||||
break;
|
||||
case DBOI_BAGEXT:
|
||||
hb_itemPutC( pInfo->itmResult, ".ntx" );
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user