Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Bud Manz
Mon, 07 May 2007 16:54
Using ADOQuery1->SaveToFile(..., pfXML);
Author: Bud Manz
Date: Mon, 07 May 2007 16:54
Date: Mon, 07 May 2007 16:54
19 lines
1573 bytes
1573 bytes
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
Re: Using ADOQuery1->SaveToFile(..., pfXML);
Author: Bob Swart
Date: Mon, 07 May 2007 20:06
Date: Mon, 07 May 2007 20:06
21 lines
1728 bytes
1728 bytes
Hi Bud,
> 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");
> 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads