Hey evry1! I'm having a bit of a problem trying to get the fdlog.saveas() function to work in myprogram... The saveAs box pops up fina and allows me to enter the filename, then i click okay and nothing happens... Basically, it doesnt save the worksheet at all. The section of my program is shown below. Any help would be appreciated!! Thanks!
The FDLog.SaveAs method only open the standard "Save As" dialog for you and retrieves teh appropriate file path + file name information. You have to do the work to save the project file, worksheet or whatever. To build on your example you could do the following....
// Get teh Filename System.FileExt.ActiveGroup$ = Origin; fdlog.ShowComment = 0; fdlog.UseGroup(Origin); fdlog.path$ = ""; fdlog.default$ = ""; fdlog.saveAs(A);
// Save the Project to an OPJ file save %A;
// save worksheet, graph, or matrix window to a file - NEEDS AN APPROPRIATE EXTENSION save -i %A;
// Save the winName notes window to a file save -n winName %A
Look in the Help manual under "Save" for all the options and examples. Hope this helps. Craig