请问我在unifunction(没form的)里写了一个函数
type
find=class(Tobject)
public
 function locates(idnum:string):string;
end;
想在form1里调用]
edit1.Text:=locate(edit2.Text)
总是提示“ This form of method call only allowed for class methods”
请问是为什么?