GxFileFilter

0 голосов
спросил 14 Май, 05 от Гость (210,080 баллов) в категории Программные продукты Esri

Уважаемые! Не подскажите почему этот пример, взятый из Help  не работает.

Set pApp = Application   -возникает ошибка (Type mismatch)

GxFileFilter Example

The following VBA code demonstrates how to use the AddFileType method to add the "*.aml" file type to the filter. The file type will be displayed with the default icon since we are not specifying one with the last parameter of AddFileType:

Dim pApp As IGxApplication, pCat As IGxCatalog Dim pFileFilter As IGxFileFilter Set pApp = Application Set pCat = pApp.Catalog Set pFileFilter = pCat.FileFilter pFileFilter.AddFileType "aml", "Workstation ArcInfo Macro files", ""

2 Ответы

0 голосов
ответил 15 Май, 05 от Alexander1 (32,520 баллов)

Может, Вы свое приложение в ArcMap пытаетесь запустить, а не в ArcCatalog?

0 голосов
ответил 16 Май, 05 от Гость (210,080 баллов)
Спасибо! Именно так и есть. Я это понял ,когда уже отправил сообщение.
Добро пожаловать на сайт Вопросов и Ответов, где вы можете задавать вопросы по GIS тематике и получать ответы от других членов сообщества.
...