Hi!
I use with rddleto:
If leto_file(myfile)
    msginfo("file found")
EndIf

Regards,
Itamar M. Lins Jr.
"Massimo Belgrano" <[email protected]> 
escreveu na mensagem 
news:[email protected]...
wich rdd support dbexist()?
rddsql,rddado,rddads,letodb


2008/4/29 Przemyslaw Czerpak 
<[email protected]>

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



-- 
Massimo Belgrano

Analisi e sviluppo software per Lan e Web - Consulenza informatica - 
Formazione
Delta Informatica S.r.l. http://www.deltain.it/   +39 0321 455962 



_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to