在VB中的InStr函数在Delphi中是怎样实现的?(50分)

  • 主题发起人 主题发起人 狒狒
  • 开始时间 开始时间

狒狒

Unregistered / Unconfirmed
GUEST, unregistred user!
在VB中的InStr函数在Delphi中是怎样实现的?
 
function pos(substring, sourcestring: string): Integer;
 
楼上正确!
 
Delphi的帮助中是这样写的:……

function Pos(Substr: string
S: string): Integer;

Description
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.
 
楼上的有没搞错[:D]
 
用strpos完全可以?!
 
后退
顶部