Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #3617 > unrolled thread
| Started by | Martin <spam@spam.spam> |
|---|---|
| First post | 2012-06-18 09:51 +0100 |
| Last post | 2012-06-19 09:33 +0200 |
| Articles | 11 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Is this a bug? Martin <spam@spam.spam> - 2012-06-18 09:51 +0100
Re: Is this a bug? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-06-18 14:57 +0200
Re: Is this a bug? Martin <spam@spam.spam> - 2012-06-19 10:16 +0100
Re: Is this a bug? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-06-19 11:53 +0200
Re: Is this a bug? Martin <spam@spam.spam> - 2012-06-19 10:18 +0100
Re: Is this a bug? "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-06-19 01:44 +1000
Re: Is this a bug? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-06-18 18:28 +0200
Re: Is this a bug? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-06-18 18:31 +0200
Re: Is this a bug? "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-06-19 03:13 +1000
Re: Is this a bug? Mathias <mathias.hakansson@consultec.se> - 2012-06-18 22:11 -0700
Re: Is this a bug? "Er!k \\/!$$Er" <nospam@nospam.url> - 2012-06-19 09:33 +0200
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-06-18 09:51 +0100 |
| Subject | Is this a bug? |
| Message-ID | <k_BDr.144345$kM1.10171@fx18.am4> |
Got a pop up screen does Self:Use(Self:Owner:dbServername) When the screen closes the file is closed, why? I did not say close in the close routine.
[toc] | [next] | [standalone]
| From | "Er!k \\/!$$Er" <nospam@nospam.url> |
|---|---|
| Date | 2012-06-18 14:57 +0200 |
| Message-ID | <a48mt7Fq8nU1@mid.individual.net> |
| In reply to | #3617 |
Martin, No, this is no bug at all, this is the prefered behaviour. You pass the servername and the form instantiates a new dbServer object. Form closed, so the dbServer is closed also. But in case you want the share a dbServer from the ownerwindow, you better pass the serverobject. SELF:Use( SELF:Owner:Server ) hth Erik "Martin" schreef in bericht news:k_BDr.144345$kM1.10171@fx18.am4... Got a pop up screen does Self:Use(Self:Owner:dbServername) When the screen closes the file is closed, why? I did not say close in the close routine.
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-06-19 10:16 +0100 |
| Message-ID | <wrXDr.119991$2l2.9462@fx01.am4> |
| In reply to | #3619 |
Bit of a pain though when the server is from a parent!!!! On 18/06/2012 13:57, Er!k \/!$$Er wrote: > Martin, > > No, this is no bug at all, this is the prefered behaviour. > You pass the servername and the form instantiates a new dbServer object. > Form closed, so the dbServer is closed also. > > But in case you want the share a dbServer from the ownerwindow, you > better pass the serverobject. > SELF:Use( SELF:Owner:Server ) > > hth > > Erik > > > > > "Martin" schreef in bericht news:k_BDr.144345$kM1.10171@fx18.am4... > > Got a pop up screen does Self:Use(Self:Owner:dbServername) > > When the screen closes the file is closed, why? > > I did not say close in the close routine.
[toc] | [prev] | [next] | [standalone]
| From | "Er!k \\/!$$Er" <nospam@nospam.url> |
|---|---|
| Date | 2012-06-19 11:53 +0200 |
| Message-ID | <a4b0grF8i5U1@mid.individual.net> |
| In reply to | #3629 |
Hi Martin, No, it is not if you are just passing a string with the name of the server. Erik "Martin" schreef in bericht news:wrXDr.119991$2l2.9462@fx01.am4... Bit of a pain though when the server is from a parent!!!! On 18/06/2012 13:57, Er!k \/!$$Er wrote: > Martin, > > No, this is no bug at all, this is the prefered behaviour. > You pass the servername and the form instantiates a new dbServer object. > Form closed, so the dbServer is closed also. > > But in case you want the share a dbServer from the ownerwindow, you > better pass the serverobject. > SELF:Use( SELF:Owner:Server ) > > hth > > Erik > > > > > "Martin" schreef in bericht news:k_BDr.144345$kM1.10171@fx18.am4... > > Got a pop up screen does Self:Use(Self:Owner:dbServername) > > When the screen closes the file is closed, why? > > I did not say close in the close routine.
[toc] | [prev] | [next] | [standalone]
| From | Martin <spam@spam.spam> |
|---|---|
| Date | 2012-06-19 10:18 +0100 |
| Message-ID | <otXDr.119992$2l2.2641@fx01.am4> |
| In reply to | #3619 |
I am passing the server. The fix was to open and use the same DBF with a new server and add a close method to the dialogue Self:dbNewServer:GoTo(Self:Owner:dbParentServer:RecNo) On 18/06/2012 13:57, Er!k \/!$$Er wrote: > Martin, > > No, this is no bug at all, this is the prefered behaviour. > You pass the servername and the form instantiates a new dbServer object. > Form closed, so the dbServer is closed also. > > But in case you want the share a dbServer from the ownerwindow, you > better pass the serverobject. > SELF:Use( SELF:Owner:Server ) > > hth > > Erik > > > > > "Martin" schreef in bericht news:k_BDr.144345$kM1.10171@fx18.am4... > > Got a pop up screen does Self:Use(Self:Owner:dbServername) > > When the screen closes the file is closed, why? > > I did not say close in the close routine.
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2012-06-19 01:44 +1000 |
| Message-ID | <udIDr.8191$v14.2467@viwinnwfe02.internal.bigpond.com> |
| In reply to | #3617 |
Martin
>
> When the screen closes the file is closed, why?
>
> I did not say close in the close routine.
Check the properties of the popup window - you can shut off the auto close
feature.
- oWindow:A;lowServerClose := FALSE
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Er!k \\/!$$Er" <nospam@nospam.url> |
|---|---|
| Date | 2012-06-18 18:28 +0200 |
| Message-ID | <a4938vFof8U1@mid.individual.net> |
| In reply to | #3622 |
In that case he would end up with server opened dbServer for every time the
popup is showed.
Erik
"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> schreef in bericht
news:<udIDr.8191$v14.2467@viwinnwfe02.internal.bigpond.com>...
> Martin
>
> >
> > When the screen closes the file is closed, why?
> >
> > I did not say close in the close routine.
>
> Check the properties of the popup window - you can shut off the auto close
> feature.
> - oWindow:A;lowServerClose := FALSE
>
> CYA
> Steve
>
>
"Stephen Quinn" schreef in bericht
news:udIDr.8191$v14.2467@viwinnwfe02.internal.bigpond.com...
Martin
>
> When the screen closes the file is closed, why?
>
> I did not say close in the close routine.
Check the properties of the popup window - you can shut off the auto close
feature.
- oWindow:A;lowServerClose := FALSE
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Er!k \\/!$$Er" <nospam@nospam.url> |
|---|---|
| Date | 2012-06-18 18:31 +0200 |
| Message-ID | <a493ebFpr5U1@mid.individual.net> |
| In reply to | #3624 |
Sorry, this should read:
In that case he would end up with several opened dbServer, one for every
time the
popup is showed. Don't think that is a good idea.
Erik
"Er!k \/!$$Er" schreef in bericht news:a4938vFof8U1@mid.individual.net...
Erik
"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> schreef in bericht
news:<udIDr.8191$v14.2467@viwinnwfe02.internal.bigpond.com>...
> Martin
>
> >
> > When the screen closes the file is closed, why?
> >
> > I did not say close in the close routine.
>
> Check the properties of the popup window - you can shut off the auto close
> feature.
> - oWindow:A;lowServerClose := FALSE
>
> CYA
> Steve
>
>
"Stephen Quinn" schreef in bericht
news:udIDr.8191$v14.2467@viwinnwfe02.internal.bigpond.com...
Martin
>
> When the screen closes the file is closed, why?
>
> I did not say close in the close routine.
Check the properties of the popup window - you can shut off the auto close
feature.
- oWindow:A;lowServerClose := FALSE
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> |
|---|---|
| Date | 2012-06-19 03:13 +1000 |
| Message-ID | <nkJDr.8475$%E2.3953@viwinnwfe01.internal.bigpond.com> |
| In reply to | #3625 |
Erik
My understanding was that he's 'using' an already open server (on the
owner), which is being closed when the popup goes away.
I imagine he doesn't want that server closed so he can use it next time he
wants to popup that window or another window or it's required for use on the
popup owner.
oWindow:AllowServerClose := FALSE
will stop the popup closing the server and having disappear from the
owner.
If that's not the case he needs to explain the circumstances a bit better so
we can understand the exact problem.
CYA
Steve
[toc] | [prev] | [next] | [standalone]
| From | Mathias <mathias.hakansson@consultec.se> |
|---|---|
| Date | 2012-06-18 22:11 -0700 |
| Message-ID | <e7df0cb4-5cb3-4ebc-be25-f9ff985146ac@googlegroups.com> |
| In reply to | #3626 |
An alternative is to add the main window as a client to the dbserver with DBServer:RegisterClient(oWindow) The server does not close until the last client calls UnregisterClient. Registering the main window as a client makes sure there is at leat one client left in the servers client list. /MathiasH Den måndagen den 18:e juni 2012 kl. 19:13:37 UTC+2 skrev Stephen Quinn: > Erik > > My understanding was that he's 'using' an already open server (on the > owner), which is being closed when the popup goes away. > > I imagine he doesn't want that server closed so he can use it next time he > wants to popup that window or another window or it's required for use on the > popup owner. > > oWindow:AllowServerClose := FALSE > will stop the popup closing the server and having disappear from the > owner. > > If that's not the case he needs to explain the circumstances a bit better so > we can understand the exact problem. > > CYA > Steve
[toc] | [prev] | [next] | [standalone]
| From | "Er!k \\/!$$Er" <nospam@nospam.url> |
|---|---|
| Date | 2012-06-19 09:33 +0200 |
| Message-ID | <a4aoanFcb0U1@mid.individual.net> |
| In reply to | #3626 |
Yep, I know, but I think his problem is he passes the name of the server,
not the serverobject.
Erik
"Stephen Quinn" schreef in bericht
news:nkJDr.8475$%E2.3953@viwinnwfe01.internal.bigpond.com...
Erik
My understanding was that he's 'using' an already open server (on the
owner), which is being closed when the popup goes away.
I imagine he doesn't want that server closed so he can use it next time he
wants to popup that window or another window or it's required for use on the
popup owner.
oWindow:AllowServerClose := FALSE
will stop the popup closing the server and having disappear from the
owner.
If that's not the case he needs to explain the circumstances a bit better so
we can understand the exact problem.
CYA
Steve
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web