[Openroad-users] File Popup method for saving files
Bodo Bergmann
Bodo.Bergmann at ingres.com
Tue Jul 10 00:38:45 EST 2007
Just set the "operation" parameter of the FilePopup() method to
FUP_SAVE.
>From the Language Reference Manual (ProcExec class, FilePopup method):
The optional operation parameter is either FOP_OPEN or FOP_SAVE.
This parameter determines whether the selection box has a Save button or
an Open button.
If you do not specify the operation parameter, the file selection box
will have an Open button.
Bodo Bergmann
Senior Software Engineer
OpenROAD Worldwide Development
Ingres Corp.
> _____________________________________________
> From: openroad-users-bounces at peerlessit.com
> [mailto:openroad-users-bounces at peerlessit.com] On Behalf Of
> Bloomfield, Martin (PSD)
> Sent: Monday, July 09, 2007 4:20 PM
> To: Openroad-Users
> Subject: File Popup method for saving files
>
> In an application I am creating, users need to be able to do a mail
> merge. Normally I could do this automatically, but they need the
> ability to change some of the merge information. Therefore I am
> creating the data file for them. Currently, I use the
> CurFrame.FilePopup method (with a pre-populated filename) to ask them
> for the location and name of the file to save. I then pass this value
> to the WriteToFile method of my stringobject.
>
> The problem I have is that the FilePopup method displays a dialog with
> a button labelled "Open". I have set the title to "Save data file
> as...", but would like to change the button label to "Save". Does
> anyone know if this is possible, or have an alternative way of getting
> a File Save dialog that just returns the filename (or can be used on a
> StringObject to save the file directly)?
>
> We are using OpenROAD 4.1 (SP2) on Ingres/Net 2.6 under Windows XP.
>
> Many thanks,
> Martin Bloomfield.
> _________________________________________________
> Application Developer & Database Administrator
> IT Branch,
> Pesticides Safety Directorate
> YORK
> Email: martin.bloomfield at psd.defra.gsi.gov.uk
> Website: www.pesticides.gov.uk
> P Save a tree... please don't print this e-mail unless you really need
> to
>
> << File: ATT472741.txt >>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20070709/e660e14e/attachment.html
More information about the Openroad-users
mailing list