作业帮 > 综合 > 作业

VFP上的AT()函数是怎么用的,最好用例题讲

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/16 04:54:24
VFP上的AT()函数是怎么用的,最好用例题讲
STORE "NOW is the time for all good men" TO gcString && 这时候 gcString = "NOW is the time for all good men"
STORE "is the" TO gcFindString && 这时候 gcFindString = "is the"
AT (gcFindString,gcString) && 在 "NOW is the time for all good men" 寻找 "is the" 的开始位置,返回 5
STORE "IS" TO gcString && 这时候 gcString = "IS"
AT(gcFindString,gcString) && && 在 "IS" 寻找 "is the" 的开始位置,返回 0