Botão de procurar\anexar

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Responder
daniel.pinna
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Mensagens: 5
Registrado em: Ter, 27 Fev 2007 2:23 pm
Localização: Rio de janeiro
Daniel Pinna

Fala galera,

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!!
:-o
Avatar do usuário
dr_gori
Moderador
Moderador
Mensagens: 5024
Registrado em: Seg, 03 Mai 2004 3:08 pm
Localização: Portland, OR USA
Contato:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Veja esse link:
http://glufke.net/oracle/viewtopic.php?t=1379
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.
daniel.pinna
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Mensagens: 5
Registrado em: Ter, 27 Fev 2007 2:23 pm
Localização: Rio de janeiro
Daniel Pinna

Vlw Thomas, obrigado pela ajuda
Responder
  • Informação
  • Quem está online

    Usuários navegando neste fórum: Nenhum usuário registrado e 11 visitantes