Can Execute a SaveDialog only one time (?)

From: Bert Prins (prinsoft_at_hotmail.com)
Date: 11/25/03


Date: Tue, 25 Nov 2003 08:36:39 +0100

Hello.

In a procedure I create a SaveDialog on the fly like this:

sd := TSaveDialog.Create(self);
sd.Filter := 'Rapportage-bestanden (*.RepGen)|*.RepGen';
sd.DefaultExt := '*.RepGen';
sd.Options := sd.Options + [ofOverwritePrompt, ofCreatePrompt];
sd.InitialDir := Form_Tab_Result.RGT.SelFileDir;
sd.FileName := Form_Tab_Result.RGT.SelFileName;
if sd.Execute then begin
   ........................
end;

At the end of the procedure I free the dialog:
sd.Free;

The first time I call this procedure, the Dialog execute and everything
works fine. But the next time I need this procedure the Dialog don't
execute. The procedure don't generate an exception.
Can anyone help me with this, I don't see what goes wrong.

Bert Prins



Relevant Pages

  • Re: Can Execute a SaveDialog only one time (?)
    ... end after the execute. ... >> The first time I call this procedure, ... >> Bert Prins ... You must the SaveDialog free! ...
    (alt.comp.lang.borland-delphi)
  • Re: Can Execute a SaveDialog only one time (?)
    ... end after the execute. ... > The first time I call this procedure, ... The procedure don't generate an exception. ... > Bert Prins ...
    (alt.comp.lang.borland-delphi)
  • Re: CICS and COBOL reentrancy was Re: Further discussion on "Something has to be maintained" and lac
    ... branched, based on the progress indicator, which was set immediately ... different in that the next code to execute could be enqueued against the ... EIBCALEN indicates whether this is the first time in, ... at which point the next one comes in with IT's terminal-dependent ...
    (comp.lang.cobol)
  • Re: Slow execution of a stored procedure
    ... the first time I execute the SP the variable ... 'physical reads' is high (a lot of reads from physical disk). ... the first time SQL Server executes? ... no more than 50), using the index, and then do the clustered index seek (to ...
    (microsoft.public.sqlserver.programming)
  • Re: can I force Page.IsPostBack=false ?
    ... I want the form to reload as if it ... is being called for the first time. ... Page_Load if to execute as if we are calling the ...
    (microsoft.public.dotnet.framework.aspnet)