LoadDS method

Delphi example

C++Builder example

 

Builder Syntax

int __fastcall LoadDS(System::AnsiString sFilename, int nFlags);

Delphi Syntax

function LoadDS(sFilename: String; nFlags: Integer): Integer;

Overview

Refer to Working with Data Sets.

Remarks

Loads the Data Set from the specified file.

If you know certain characteristics of the file, you can set those in nFlags. Any characteristic that you don’t set will be automatically determined. For example, if you know that the metaheader is present, but you do not know the byte order, or whether the Value Representation is implicit or explicit, you can set only DS_METAHEADER_PRESENT in nFlags. During loading LEADTOOLS will determine the byte order and whether the byte order is implicit or explicit.

If you do not know any of the characteristics of the file, set nFlags to 0 and LEADTOOLS will automatically determine all the file characteristics and load the file accordingly.

Any of the available Meta-header flags listed under nFlags may be combined with any of the available values or combinations of values for the Transfer Syntax flags. For example, you may combine DS_METAHEADER_ABSENT with DS_EXPLICIT_VR, or you may combine DS_METAHEADER_PRESENT with DS_BIG_ENDIAN OR DS_EXPLICIT_VR, etc.

See Also

Elements:

InitDS method, SaveDS method