To precisando de uma ajudinho no forms. Preciso colocar um botão que quando clicque nele sejá possível escolher um caminho do meu pc.
ex.
botão de anexar arquivo em e-mail.
Vlw Galera!!

Open_File displays a 'File Open' dialog box. You can control the dialog title, start directory and file filter. The function returns the path and name of the file that the user selects in the dialog.
Arguments:
<Title> The Title for the Dialog Box (Default = 'Open File')
<StartDirectory> Directory from which the dialog starts, including the drive and no trailing slash e.g. 'C:\TEMP', (Default = Windows Directory).
You can specify the Windows and Temp directories on your machine, using the shorthand $WINDIR$ and $TEMP$ respectively. The function will then ask the system for the relevant directory.
<FileFilter> Restrict the list of files. The filter string should be in the format:
'<Description>|<filename>.<Extension>|'
Typically this would be something like 'All files(*.*)|*.*|' or 'Text files(*.txt)|*.txt|', the 'All Files' filter is the default.
<Modal> Should the dialog be modal with respect to the application? (Default -> TRUE)
<AdvancedFlags> (See list in WIN_API header) This option allows you to change the attributes of the File dialog. Here are flags that might be of interest:
OFN_NONETWORKBUTTON Hides the Network Button.
OFN_ALLOWMULTISELECT allows the user to select multiple files. In such a case the selected directory is returned, followed by a space, and then each file name, separated by a space.
See your Microsoft documentation for full details on each flag.
The Advanced_Flags variable is a bit string, generally each flag sets a single bit so you can set several flags by adding values of each constant together. However, the WIN_API_BITOP package in the library provides functions for correct Bitwise Inclusive OR operation if required.
The default is:
OFN_PATHMUSTEXIST +OFN_FILEMUSTEXIST+OFN_HIDEREADONLY+OFN_NOCHANGEDIR
<RaiseExceptions> TRUE or FALSE(Default) If set to TRUE, then if no filename is returned, the explicit PL/SQL exception NO_DATA_FOUND will be raised.
Usuários navegando neste fórum: Nenhum usuário registrado e 3 visitantes