Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #9178 > unrolled thread

OpenDialog error message

Started byJürgen Knauf <trotterklaus@googlemail.com>
First post2016-03-22 01:16 -0700
Last post2016-03-22 04:49 -0700
Articles 4 — 2 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  OpenDialog error message Jürgen Knauf <trotterklaus@googlemail.com> - 2016-03-22 01:16 -0700
    Re: OpenDialog error message Franz Rachbauer <office@rachbauer.org> - 2016-03-22 09:33 +0100
    Re: OpenDialog error message Franz Rachbauer <office@rachbauer.org> - 2016-03-22 09:36 +0100
      Re: OpenDialog error message Jürgen Knauf <trotterklaus@googlemail.com> - 2016-03-22 04:49 -0700

#9178 — OpenDialog error message

FromJürgen Knauf <trotterklaus@googlemail.com>
Date2016-03-22 01:16 -0700
SubjectOpenDialog error message
Message-ID<f16bb9c5-b4e2-4480-9a49-5386ea0e3778@googlegroups.com>
Hi,

i use an OpenDialog and want to select another database name and get this error: "This file is opened by an other app".
I only want to select the name with OpenDialog. I don't want to open it:

oDlg := OpenDialog{oWin,cPfad+"\*.ADT"}
oDlg:Caption := "Textbausteindatei öffnen"
oDlg:Show(SHOWCENTERED)
cDatei := oDlg:FileName       

The file, which name I want to select, is shared opened in a database editor like "Advantage Data Architect" in the remote mode.

I thought that "OpenDialog" gives me only a dialog box to select a file and then return the file name. Obviously it checks additionally the file for locking by another app.

Can I stop this checking mechanism in OpenDialog? 

Regards
Jürgen

[toc] | [next] | [standalone]


#9179

FromFranz Rachbauer <office@rachbauer.org>
Date2016-03-22 09:33 +0100
Message-ID<ncr00a$po1$2@gioia.aioe.org>
In reply to#9178
Hi Jürgen,
did you try to select file with ReadOnly Checkbox checked?
Regards, Franz

Am 22.03.2016 um 09:16 schrieb Jürgen Knauf:
>
> i use an OpenDialog and want to select another database name and get this error:
   "This file is opened by an other app".
> I only want to select the name with OpenDialog. I don't want to open it:
>
> oDlg := OpenDialog{oWin,cPfad+"\*.ADT"}
> oDlg:Caption := "Textbausteindatei öffnen"
> oDlg:Show(SHOWCENTERED)
> cDatei := oDlg:FileName
>
> The file, which name I want to select, is shared opened in a database editor like
   "Advantage Data Architect" in the remote mode.
>
> I thought that "OpenDialog" gives me only a dialog box to select a file and then return
   the file name. Obviously it checks additionally the file for locking 
by another app.
>
> Can I stop this checking mechanism in OpenDialog?
>

[toc] | [prev] | [next] | [standalone]


#9180

FromFranz Rachbauer <office@rachbauer.org>
Date2016-03-22 09:36 +0100
Message-ID<ncr07g$ptp$1@gioia.aioe.org>
In reply to#9178
Hi Jürgen,
maybe oDlg:SetStyle(OFN_SHAREAWARE) helps.
Regards, Franz

Am 22.03.2016 um 09:16 schrieb Jürgen Knauf:
> Hi,
>
> i use an OpenDialog and want to select another database name and get this error:
   "This file is opened by an other app".
> I only want to select the name with OpenDialog. I don't want to open it:
>
> oDlg := OpenDialog{oWin,cPfad+"\*.ADT"}
> oDlg:Caption := "Textbausteindatei öffnen"
> oDlg:Show(SHOWCENTERED)
> cDatei := oDlg:FileName
>
> The file, which name I want to select, is shared opened in a database editor like
   "Advantage Data Architect" in the remote mode.
>
> I thought that "OpenDialog" gives me only a dialog box to select a file and then return
   the file name. Obviously it checks additionally the file for locking 
by another app.
>
> Can I stop this checking mechanism in OpenDialog?
>
> Regards
> Jürgen
>

[toc] | [prev] | [next] | [standalone]


#9181

FromJürgen Knauf <trotterklaus@googlemail.com>
Date2016-03-22 04:49 -0700
Message-ID<b8fa010b-f1a0-4b6d-902b-a21dbbde40c1@googlegroups.com>
In reply to#9180
Am Dienstag, 22. März 2016 09:37:06 UTC+1 schrieb Franz Rachbauer:
> Hi Jürgen,
> maybe oDlg:SetStyle(OFN_SHAREAWARE) helps.
> Regards, Franz
> 
> Am 22.03.2016 um 09:16 schrieb Jürgen Knauf:
> > Hi,
> >
> > i use an OpenDialog and want to select another database name and get this error:
>    "This file is opened by an other app".
> > I only want to select the name with OpenDialog. I don't want to open it:
> >
> > oDlg := OpenDialog{oWin,cPfad+"\*.ADT"}
> > oDlg:Caption := "Textbausteindatei öffnen"
> > oDlg:Show(SHOWCENTERED)
> > cDatei := oDlg:FileName
> >
> > The file, which name I want to select, is shared opened in a database editor like
>    "Advantage Data Architect" in the remote mode.
> >
> > I thought that "OpenDialog" gives me only a dialog box to select a file and then return
>    the file name. Obviously it checks additionally the file for locking 
> by another app.
> >
> > Can I stop this checking mechanism in OpenDialog?
> >
> > Regards
> > Jürgen
> >

Franz, thank you very very much!
This was the solution.

Juergen

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web