.Find32 Method

Top  Previous  Next

Function:

Locates the Nth occurrence of a substring within the currently opened resource (ROM) file.

Syntax:

romfile.find32(frompos as dword, byref substr as string, num as word) as dword

Returns:

32-bit value indicating the file position at which the specified occurrence of the substring was found or 0 if the specified occurrence wasn't found.

See Also:

Romfile Object

 


Part

Description

frompos

Starting search position in the file.

substr

Substring to search for.

num

Substring occurrence to search for.

Details

Bytes in the resource files are counted from 1. When searching inside files that do not exceed 65535 bytes, use romfile.find instead — this will speed up your application.