Hi ppl, Please I need understand:
*if* for some reaction AdsGotoTop() function fail in ads server, this function return !AE_SUCCESS. In the code below from ads1.c, there is no need check this? ---cut--- static ERRCODE adsGoTop( ADSAREAP pArea ) { HB_TRACE(HB_TR_DEBUG, ("adsGoTop(%p)", pArea)); /* reset any pending relations */ SELF_RESETREL( pArea ); pArea->fTop = TRUE; pArea->fBottom = FALSE; AdsGotoTop( (pArea->hOrdCurrent) ? pArea->hOrdCurrent : pArea->hTable ); hb_adsUpdateAreaFlags( pArea ); /* Force relational movement in child WorkAreas */ if( pArea->lpdbRelations ) SELF_SYNCCHILDREN( ( AREAP ) pArea ); return SELF_SKIPFILTER( ( AREAP ) pArea, 1 ); } ---cut--- IIUC the correct is: ---cut--- ulRetVal = AdsGotoTop( (pArea->hOrdCurrent) ? pArea->hOrdCurrent : pArea->hTable ); if( u32RetVal != AE_SUCCESS ) { hb_errRT_DBCMD( error.code.here ); return FAILURE; } ---cut--- Thanks in advance and best regards, Toninho. __________________________________________________ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour