2009-09-10 4 views

답변

7

예, 프로젝트 옵션에서 전역 허용 옵션을 설정하면 가능합니다. 그런 다음 다음 코드를 수행하면됩니다.

interface 

method GlobalMethod: Integer; public; 

implementation 

이 구성은 사용하지 않는 것이 좋습니다. 닷넷 방법은 클래스에 정적/클래스 메서드를 사용하는 것입니다.

type 
    TSomeClass = public class 
    public 
    class method GlobalMethod: Integer; 
    end; 

// Call like this 
I := TSomeClass.GlobalMethod; 
관련 문제