The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 fdlog.saveas(letter) function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

blt2si

Germany
37 Posts

Posted - 07/21/2003 :  04:55:01 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

System.FileExt.ActiveGroup$ = Origin;
fdlog.ShowComment = 0;
fdlog.UseGroup(Origin);
fdlog.path$ = "";
fdlog.default$ = "";
fdlog.saveAs(A);

CStorey

Canada
137 Posts

Posted - 07/21/2003 :  5:35:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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


Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
Go to Top of Page

blt2si

Germany
37 Posts

Posted - 07/24/2003 :  02:15:31 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks heaps!! Problem solved!!
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000