1. #1
    New Member Follow User Gallery
    Join Date
    Jan 2008
    Posts
    1

    Default Is there way to get the current document name?

    Sorry if this posted twice, for some reason my first one didn't show up on the forum.

    Question is. Is there a way to get the current document name and path?

    I've scanned through the command reference and could only find [FileNameGetLastUsed] which only seems to work globally, not specifically on the document.

    Thanks in advance

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    The short answer is no. You can get it by asking your user to save the document and then use FileNameGetLastUsed, or you can save the document with a name of your choice by using FileNameSetNext, but there's no way to get the name/path of the document otherwise.

    What you can do is to test to see if the document has been saved:
    [CODE]
    [If,[IsEnabled,Document:Revert],
    //code for when document has been saved
    ,//else
    //code for when document has not been saved
    ][/CODE]
    which may be useful to you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •