Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference
Description
Finds a specified character string from the position specified in nStartPos, and returns the first matching character string position.
Format
integer AIT_FindSubStr ( string strStrName, // Character string string strSearchStr // Character string to be found [,integer nStartPos] // Character position at which to start finding );
Parameters
strStrName (input)
Specify a character string.
strSearchStr (input)
Specify a character string to be found.
nStartPos (input, optional)
Specify the position at which to start finding a character string. The default nStartPos value is 0, which corresponds to the first character of a character string. By default, this operation starts at the first character.
Return values
This API function returns the 0-based index for the first character of the target character string. This API function returns -1 if no character string exists or the null character string is specified.
You can use AIT_GetLastError to acquire an extended error code. The following gives the error code that AIT_GetLastError may return.
| Extended error number | Error code |
|---|---|
| 87 | ERROR_INVALID_PARAMETER |
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.