Skip to main content
Table of Contents

TTMSFNCCloudWhatsAppFiles.GetFileIndex Method

Finds the index of a media entry by file name.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudWhatsAppFiles

Syntax

FMX.TMSFNCCloudWhatsApp.hppPascalC++
function GetFileIndex(AFileName: string): Integer;
int __fastcall GetFileIndex(System::UnicodeString AFileName);

Parameters

Name Description
AFileName File name to search for.

Returns

The zero-based media index, or -1 when no matching file is found.