On Tue, 29 Apr 2008, Massimo Belgrano wrote: > How is possible use ADSCHECKEXISTENCE function from ads? > Is correct think that function like ADSCHECKEXISTENCE (ads) or sr_file > (sqlrdd) must be replaceable via rdd? > ADSCHECKEXISTENCE > Probably also letodb need a function for check for existence of a file > by server side
We already have such functionality: dbExists( <cTable>, [<cIndex>], [<ulConnction>] ) -> <lExists> It checks if table or index to given table exists. F.e.: dbExists( "test" ) returns true if table "test" exists. It's not necessary to add file name extension. It will be done automatically by RDD. And dbExists( "test", "fisrt" ) checks if table "test" has index "first". Some RDDs like DBF* may ignore table name during index checking. We have also dbDrop( <cTable>, [<cIndex>], [<ulConnction>] ) -> <lRemoved> which can remove table with all related files (indexs and memos) f.e.: dbDrop( "test" ) or only given index, f.e. dbDrop( "test", "fisrt" ) AFAIK SQLRDD does not support them at all. In ADS they are supported but only using standard file API and it should be fixed to use ACE functions. Though I do not know if it can be implemented using documented ACE API. best regards, Przemek _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
