种豆资源网

当前位置:首页 > 百科 > 百科综合 / 正文

AT()

(2020-07-04 10:30:24) 百科综合

AT()

AT()函式-VFP
1.功能
返回一个字元表达式或备注栏位在另一个字元表达式或者备注栏位中出现的位置(从最左边开始计算).
2.语法格式
AT(cSearchExpression,cExpressionSearched, [nccurrence])
其中字元表达式cSearchExpression指定搜寻表达式;字表达式cExpressionSearched指定被搜寻表达式;数值表达式nccurrence指定cSearchExpression在cExpressionSearched中第几次出现,预设时为1,如果返回值为0,则表示未出现.
3.例子
STORE 'Now is the time for all good men' TO gcString
STORY 'is the ' TO gcFindString
?AT(gc.FindString,gc.String) 显示5
STORE 'IS' TO gcFindString
?AT(gc.FindString,gc.string) 显示0,因为区分大小写

标 签

搜索
随机推荐

Powered By 种豆资源网||