EXPORT Function (BLOB)

Exports a binary large object (BLOB).

Syntax

  
[ExportName] := Blob.EXPORT([Name [, CommonDialog]])  

Parameters

Blob
Type: Variable

The BLOB that you want to export.

Name
Type: Text or code

The path and name of the BLOB that you want to export.

When you enter the path, consider these shortcuts:

  • You can omit the drive letter if the command is located on the current drive.

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

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

    CommonDialog
    Type: Boolean

    Specifies whether you want to display a dialog box before the BLOB is exported. This dialog box lets you select the file that you want to export. Based on the SubType Property (BLOB) property, only the appropriate file types are listed, such as bitmap files (*.bmp), memo files (*.txt), or all files (*.*).

    If the CommonDialog parameter is true, Dynamics NAV will display the confirmation dialog box. If the CommonDialog parameter is false (default), Dynamics NAV will not display the confirmation dialog box.

Property Value/Return Value

Type: text

The name and path of the exported file.

If the return value is the file's name and path, then the BLOB was exported.

If the return value is an empty string, then the BLOB was not exported.

See Also

BLOB Data Type