BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ADO Charset problem with deleteRecords (ADOTable)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases
View previous topic :: View next topic  
Author Message
Yannick
Guest





PostPosted: Mon Aug 22, 2005 3:21 pm    Post subject: ADO Charset problem with deleteRecords (ADOTable) Reply with quote



Hello,

I am using ADO Components since I have to handle both DBF and MDB files
with the same code.
While trying to Empty the tables, everything works fine until there is
a line containing an accent (e.g. "é" or "è") in the database. Then,
in the FieldByName properties, the char turns into a "+" and when it
has to delete this line, it says: "la ligne n'a pas pu être trouvée
pour la mise à jour" ("update failed because the row to update could
not be found").
This simple code is:

T_IDENTITE->Active=true;
T_IDENTITE->First();
while (!T_IDENTITE->Eof)
{
T_IDENTITE->DeleteRecords(arCurrent); // -> Exception here
T_IDENTITE->UpdateBatch(arCurrent);
}
T_IDENTITE->Active=false;

I set the Locale Identifier to 1036 (in ConnectionSttring) that is for
french charset but issue stays the same.
Any help would be greatly appreciated!
Thanks

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.