GlobalScope
Basic 원본 코드와 대화 상자는 라이브러리 시스템에서 관리됩니다.
-
LibraryContainer는 라이브러리를 포함합니다.
-
라이브러리는 모듈과 대화 상자를 포함할 수 있습니다.
Basic의 경우:
-
LibraryContainer를 BasicLibraries라고 부릅니다.
대화 상자의 경우:
-
LibraryContainer를DialogLibraries라고 부릅니다.
두 LibraryContainer는 모두 응용 프로그램 수준에서 모든 문서 내에 존재합니다. 문서 Basic에서 문서의 LibraryContainer는 자동으로 호출됩니다. 문서 내에서 전역 LibraryContainer를 호출하려는 경우 GlobalScope 키워드를 사용해야 합니다.
구문:
GlobalScope
예:
Example in the document Basic
' calling Dialog1 in the document library Standard
oDlgDesc = DialogLibraries.Standard.Dialog1
' calling Dialog2 in the application library Library1
oDlgDesc = GlobalScope.DialogLibraries.Library1.Dialog2