On Wed, 14 Jan 2009, Francesco Saverio Giudice wrote: Hi Francesco,
> I would like to share an USR RDD that permits to log to a file any DBF > updates. > I have tested it with my xharbour repository, but it should works also with > harbour. > It's a proof of concept done to check some problems I have at one customer > that says that he losts some records. So I want to trace all changes to see > if anyone delete records. > LOGCDX inherits from DBFCDX. [...] > Any comments are welcome. I think that you can introduce simple DEFINE with small PP rules to allow inheritance from any other RDD, f.e.: #define BASE_RDD DBFCDX #xtranslate MACRO2STR( <x> ) => #<x> [...] REQUEST BASE_RDD [...] LOCAL cSuperRDD := MACRO2STR( BASE_RDD ) I do not see and CDX specific code and in above version it will be more general. Maybe you should also change function names from hb_LogCdx*() to hb_LogRdd*() and maybe RDD name or also used DEFINE like: #define LOGRDD_NAME LOGCDX > If it can be useful I can upload to SVN. Yes, please do that. I think that some people will find very useful. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour