.find32 Method

Function:

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

Syntax:

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

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 65,535 bytes, use romfile.find instead — this will speed up your application.


.find32 Method

Details