ImageEn, unit iexWPD

TIEPortableDevices.FilenameToIndex

TIEPortableDevices.FilenameToIndex

Declaration

function FilenameToIndex(const Filename: WideString): Integer;

Description

Returns the index of the specified filename (without a path) in the Objects list.

Result is -1 if the ID is not valid.

Note: Filename is case insensitive

Example

// Get the index of an image in the current WPD folder
idx := pd.FilenameToIndex( 'image0909.jpg' );