.find 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: |
16-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. If the specified occurrence was found at file position 65535 or higher, the value of 65535 will be returned. |
See Also: |
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. Use romfile.find32 if you are searching within a file larger than 65,535 bytes.