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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 fdlog.saveas(letter) function

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
blt2si Posted - 07/21/2003 : 04:55:01 AM
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);
2   L A T E S T    R E P L I E S    (Newest First)
blt2si Posted - 07/24/2003 : 02:15:31 AM
Thanks heaps!! Problem solved!!
CStorey Posted - 07/21/2003 : 5:35:41 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000