• Курсы Академии Кодебай, стартующие в мае - июне, от команды The Codeby

    1. Цифровая криминалистика и реагирование на инциденты
    2. ОС Linux (DFIR) Старт: 16 мая
    3. Анализ фишинговых атак Старт: 16 мая Устройства для тестирования на проникновение Старт: 16 мая

    Скидки до 10%

    Полный список ближайших курсов ...

Диалог для выбора директории

  • Автор темы KLif
  • Дата начала
K

KLif

Всем привет.

Нужен диалог для выбора директории, где будут храниться базы ... шас просто в текстовое поле ввожу путь руками ... кто-нибудь делал подобное, есть идеи?
 
O

Oksana

Всем привет.

Нужен диалог для выбора директории, где будут храниться базы ... шас просто в текстовое поле ввожу путь руками ... кто-нибудь делал подобное, есть идеи?
@prompt

10. [LOCALBROWSE] provides controls and displays that allow you to browse and select a name from the local file system. This example opens the Notes/Domino database file the user selects from the local browser. The "1" restricts the initial display to .nsf files.
file := @Prompt([LOCALBROWSE]; "Select a database to open"; "1");
@If(file = ""; @Return(1); "");
@Command([FileOpenDatabase]; "" :mad:Left(file; " "))
 
K

KLif

@prompt

10. [LOCALBROWSE] provides controls and displays that allow you to browse and select a name from the local file system. This example opens the Notes/Domino database file the user selects from the local browser. The "1" restricts the initial display to .nsf files.
file := @Prompt([LOCALBROWSE]; "Select a database to open"; "1");
@If(file = ""; @Return(1); "");
@Command([FileOpenDatabase]; "" :mad:Left(file; " "))

Мне не нужно выбирать файл, мне нужно выбрать директорию ...
 
O

Omh

В ws.SaveFileDialog можно выбрать директорию, но не совсем прозрачно.
 
A

Alexander BEZ

Код:
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim folder As Variant

folder = ws.SaveFileDialog( True,"File name",,,)		
Set uidoc = ws.CurrentDocument
Call uidoc.FieldAppendText("DirRar", folder(0))

End Sub
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!