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 

Using ADOQuery1->SaveToFile(..., pfXML);

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Bud Manz
Guest





PostPosted: Mon May 07, 2007 9:54 pm    Post subject: Using ADOQuery1->SaveToFile(..., pfXML); Reply with quote



Hello,

I have an application that pulls information from an Oracle database as
well as a default value(hard-coded in the SQL). Its primary purpose is
to allow the user to change the default value. It does this fine, except
when she starts the updates, she cannot close the app down until all
changes are done.

I am trying to use SaveToFile to create an XML file that she can use so
she can continue if she doesn't have time to finish it in one setting.
The problem that I am facing is that when I save the file, the only way
that I can update the file is to add 'rs:writeunknown="true"' to the XML
AttributeType for the field. When she gets the new batch from Oracle, it
doesn't retain this.

Any ideas?

Thanks,
Bud
Back to top
Bob Swart
Guest





PostPosted: Tue May 08, 2007 1:06 am    Post subject: Re: Using ADOQuery1->SaveToFile(..., pfXML); Reply with quote



Hi Bud,

Quote:
I am trying to use SaveToFile to create an XML file that she can use so
she can continue if she doesn't have time to finish it in one setting.

Note that if you save to a file with the XML file extension in the name,
you don't have to specify the second parameter (with the type), since it
will automatically determine the file type based on the extension...

So just call ADOQuery1->SaveToFile("whatever.xml");

Quote:
Thanks,
Bud

Groetjes,
Bob Swart

--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
Blog: http://www.drbob42.com/blog - RSS: http://drbob42.com/weblog.xml
New Delphi 2006 Courseware e-books at http://www.eBob42.com/courseware
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) 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.