Export (0) Print
Expand All

GETSTAMP Function (File)

Microsoft Dynamics Nav 2009

Use this function to find out exactly when a file was last written to (return a timestamp).


[Ok :=] File.GETSTAMP(Name, Date [, Time])

Parameters

Name

Type: code or text

The name of the file, including the path. When you enter the path, keep in mind these shortcuts:

  • You can omit the drive designation, if the file is located on the current drive.

  • You can omit the full path, if the file is located in the current directory.

  • You can enter only the subdirectory name, if the file is located in a subdirectory of the current directory.

Date

Type: date

The date that the file was last written to.

Time

Type: time

(Optional) The time that the file was last written to.

Type: Boolean

If you omit this optional return value, a run-time error occurs when the file cannot be found. When you include the return value, you must handle any errors. The return value can have these values:

true if the file exists; otherwise, false.

Community Additions

ADD
Show:
© 2014 Microsoft