Newsgroup: it.comp.lang.delphi
Titolo: AdoTable help!

        With DataModule2 do
              begin
             AdoConnection1.Connected:=True;
              // Inserisce i Dati Fissi sul Database
              AdoTable1.Active:=True;
              AdoTable1.First;
              while Not AdoTable1.IsEmpty do
                AdoTable1.Delete; //**
              AdoTable1.Close;
              end;
La tabella Access 2000 contiene 2 record, quando arriva al ..Delete ottengo 
la seguente eccezione:
 Project CPP.exe raised exception class EOleException with message 
'Impossibile individuare la riga specificata per l'aggiornamento. E' 
possibile che alcuni valori siano stati modificati dopo l'ultima operazione 
di lettura'
Ho creato ex novo un altro database con la stessa tabella ma ottengo sempre 
la stessa eccezione, e' possibile
leggerla ed aggiungere nuovi record senza eccezioni, idee?
Grazie, Giorgio 


non uso mai adotable (ma sempre e solo adodataet e adocommand), ma se 
capisco bene cancelli record per record. con Tadocommand fai tutto in un 
colpo: adocommand.commandtext = "delete from nometabella"
(se la tua adotable1 sta facendo una selezione (cioč non vuoi eliminare 
tutti i record ma solo quelli selezionati) la stessa operazione la puoi fare 
scrivendo : adocommand.commandtext = "delete from nometabella where ....")
Gianni 


Ciao Giorgio,
mi sembra di ricordare di un "bachetto" di ADO per Delphi, per cui
occorreva aggiornare qualcosa. Dovresti fare una verifica sul sito di Borland.
Ciao da Enrico Giudici c/o Icograf
--- posted by geoForum on 
http://www.delphiedintorni.it

the nature of this wretched form of slavery as
carried on at Hong Kong. There did not exist a class of women brought
to the pitiable plight of prostitution by the wiles of the seducer, or
through the mishap of a lapse from virtue, after which all doors
to reform are practically closed against such, as in Western
civilization, nor were there those known to have fallen through innate
perversity; but such as existed among the Chinese were literal
slaves, in the full sense of that word. From the standpoint of these
officials, for the most part, prostitution was necessary. This was
plainly declared in many official documents. The fact that they
licensed brothels proves also that prostitution was considered
necessary. And since necessary, if the means failed whereby brothels
in the Occident are maintained, then they must be maintained by
Oriental means,--which was slavery. Under such circumstances, to
license prostitution meant, from the very nature of the case, to
license slavery. To encourage prostitution, as it always is encouraged
by the Contagious Diseases Acts, meant to encourage slavery. Hence
they reasoned, and declared--to use the language of the Registrar
General, Cecil C. Smith--that it was "useless to try and deal with
the question of the freedom of Chinese prostitutes by law or by
any Government regulation. From all the surroundings the thing is
impracticable."
It must be admitted that the conditions at Hong Kong favored the
development of social impurity. From the moment of British occupation,
and before, in fact, there were at that place large numbers of
unmarried soldiers and sailors, many of very loose morals; also
many men in civil and military positions as officials, and numerous
merchants, etc., most of them separated far from their families and
the restraints that surrounded them at home. On the Chinese side,
there were men accustomed to deal with their women as chattels,
willing to sell them to the foreigners.
But we need to inquire a little fur