请各位大虾帮帮忙,先在要在一个元字符串中寻找一个指定的字符串,并且返回的函数值为布尔型,解决问题立即给分

解决方案 »

  1.   

    UnitSystemCategorystring handling routinesDelphi syntax:function Pos(Substr: string; S: string): Integer;DescriptionIn Delphi, Pos searches for a substring, Substr, in a string, S. Substr and S are string-type expressions.Pos searches for Substr within S and returns an integer value that is the index of the first character of Substr within S. Pos is case-sensitive. If Substr is not found, Pos returns zero.The PosEx function is similar to Pos, but provides additional features and can be used in C++ code.//============================
    大于0 成功。
    等于0 失败。