Jump to content
Developer Wiki and Function Reference Links ×

Save File As


LauRum

Recommended Posts

I made a dialog were the User should push a button an browse for the desired folder and can type in the name of the file he wants to save. Is there something like a standard 'Save As Dialog' i can use that will return path and/or filename? I tried GetFileN but it'll only find existing files.

thank you in advance!

Link to comment

Thanks! That's what I was looking for.  vs.PutFile(commentStr, defaultStr): return fileName    returns a complete Path. Is there a known reason why i can't use   vs.SaveActiveDocument(filePath):  with this Path?  I know I can't use SaveActiveDocument inside the Dialog, so I've put this line in the Main part, after the dialog is closed with OK.

Link to comment

Hello, speaking about SaveActiveDocument, this is from my own notes from VW 12 (now is 24, so it was 12 versions ago):

It corresponds to "save as" but without dialog. Saving on the same file path name doesn't work (returns -1), only if the file path is different (returns 0).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...