DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FileSaveAs command

 
Post new topic   Reply to topic    DPlot Forum Index -> Basic
View previous topic :: View next topic  
Author Message
cbkotura



Joined: 05 Nov 2009
Posts: 6

PostPosted: Tue Feb 14, 2012 2:13 pm    Post subject: FileSaveAs command Reply with quote

In the manual the syntax for the FileSaveAs command is [FileSaveAs(1,"c:\mydata\|TITLE1|.grf")], but is it possible to input a variable using VB6? If I put [FileSaveAs(1, "dirMain.Path & "\test.grf"")] it will not compile. However if the variable is not at the beginning of the file name such as [FileSaveAs(1, ""C:\test" & I & ".grf"")] it can compile. Is it possible for the file name to begin with a variable or for the entire file name to be a variable? If so please help with the syntax. Thanks
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2287
Location: Vicksburg, Mississippi

PostPosted: Tue Feb 14, 2012 2:59 pm    Post subject: Reply with quote

This should work:

"[FileSaveAs(1,""" & dirMain.Path & "\test.grf"")]"

As should this:

Dim fname as String
fname = dirMain.Path & "\test.grf"
"FileSaveAs(1,""" & fname & """)]"
_________________
David Hyde
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cbkotura



Joined: 05 Nov 2009
Posts: 6

PostPosted: Tue Feb 14, 2012 5:32 pm    Post subject: Reply with quote

Thank you very much, that worked!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Basic All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group