Overview | Statement List | Example


字符的字符串位置

Synopsis

FNDSTR('target string','search string',pos)

Description

Returns the start position of a search string within a target string. The returned value is an integer which represents the start position of the first occurrence of the search string. The search is made from the position specified by pos to the end of the target string or until the first occurrence of the search string is found. If the search string is not found, a 0 is returned.

Parameters

Parameter

Description

'target string'

The literal string or string variable name of a string which is searched.

'search string'

The set of character(s) which is searched for in the target string.

pos

Position in the target string where the search begins. Spaces (blanks) are counted in arriving at the search location. The pos value must be an integer greater than zero.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.