Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending to a file using dwc.SaveAs()????

Status
Not open for further replies.

kaul125

Programmer
Jan 29, 2002
87
US
I would like to append to an existing file using the dwc.SaveAs() function. I'm using PB6.5.

Whenever I have an existing file, and I want to use the dwc.SaveAs() function, my file get overwritten after the SaveAs() function is called. How can I have an exisiting file with data and then use the SaveAs() function to append to that file? Or is there another way to do this? I still want the ability to save the file as type Excel.

Is there a way to save the title of a datawindow along with the colheaders using the SaveAs()? I want to include the title of the datawindow with the col headers and data to a file.

Keith
 
u can save the title of the datawindow along with col headers by saving it as .csv file or by using saveasacii() function..

as far as i know, the workaround to append a file is to use saveas() and write to a temp file...then read from the temp file and use filewrite() to append to ur file..u can then delete the temp file...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top