[Openroad-users] File Popup method for saving files
Bloomfield, Martin (PSD)
Martin.Bloomfield at psd.defra.gsi.gov.uk
Tue Jul 10 01:03:57 EST 2007
Bodo, Gary,
Thanks for the replies. I had not seen the "operation" parameter! I
tend to refer to my old printed manuals, which do not include it (I
don't like .pdf manuals).
Martin Bloomfield.
_________________________________________________
Application Developer & Database Administrator
IT Branch,
Pesticides Safety Directorate
YORK
Email: martin.bloomfield at psd.defra.gsi.gov.uk
<mailto:martin.bloomfield at psd.defra.gsi.gov.uk>
Website: www.pesticides.gov.uk <http://www.pesticides.gov.uk/>
P Save a tree... please don't print this e-mail unless you really need
to
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Bodo
Bergmann
Sent: Monday, July 09, 2007 3:39 PM
To: International OpenROAD Users
Subject: Re: [Openroad-users] File Popup method for saving files
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
<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
<mailto:martin.bloomfield at psd.defra.gsi.gov.uk>
Website: www.pesticides.gov.uk <http://www.pesticides.gov.uk>
P Save a tree... please don't print this e-mail unless you really need
to
<< File: ATT472741.txt >>
Department for Environment, Food and Rural Affairs (Defra)
This email and any attachments is intended for the named recipient only.
If you have received it in error you have no authority to use, disclose,
store or copy any of its contents and you should destroy it and inform
the sender.
Whilst this email and associated attachments will have been checked
for known viruses whilst within Defra systems we can accept no
responsibility once it has left our systems.
Communications on Defra's computer systems may be monitored and/or
recorded to secure the effective operation of the system and for other
lawful purposes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.peerlessit.com/pipermail/openroad-users/attachments/20070709/4f8a4fd1/attachment.html
More information about the Openroad-users
mailing list