Previous topic Next topic  

CacheGotoPhantom( nWA ) -> TRUE

The function positions the record pointer to phantom record. This function provides a reliable way to provide phantom record very cruicial to some application. By RDD commands it is never possible to guarantee that record pointer will ever be positioned as requested no matter what sequence application applies. Typically in DBFCDX we do like :

GO LastRec()+1



In the first scenario you never know what is the state of the table in between GO and calculating LastRec()+1. Also the behavior of GOTO is different in CachéRDD, internally, though in normal execution of application you will not see any difference.

Similarly in the second case the moment GO BOTTOM returns and SKIP is executed some other process has appended new record.

CachéGotoPhantom() will ever allow you to fill memory variables with blank field values.