|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
2004 4d open issueHi All,
Does anyone know a way to simulate on error in 4d open. Unless I am missing something the command does not exist as it does in 4d write and odbc pro I would like to trap an error and not have 4d open just sit there when a connection is lost. Short of that is there a way to set the timeout for 4d open command Regards Chuck --------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 ---------------------------------------------------------------------------- ********************************************************************** Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
|
|
|
Re: 2004 4d open issueHi Tim,
That is how we coded it but I was hoping I missed something really simple. Thanks and Regards Chuck --------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 ---------------------------------------------------------------------------- On Nov 12, 2009, at 2:13 PM, Tim Nevels wrote: > > On Nov 12, 2009, at 12:41 PM, Chuck Miller wrote: > >> Does anyone know a way to simulate on error in 4d open. Unless I am >> missing something the command does not exist as it does in 4d write >> and odbc pro >> >> I would like to trap an error and not have 4d open just sit there >> when >> a connection is lost. > > Almost all 4D Open commands return an error code. If you lose > connection, the 4D Open command will return an error code. You have > to "just sit there" until the timeout limit is reached before 4D > Open can determine that the connection has been lost. > > I do not know what the time out value is. I believe it is between > 60 - 120 seconds. I do not know if you can set this value -- I > have not found any way to do this. I think you are stuck waiting. > > Tim > > ******************************************** > Tim Nevels > Innovative Solutions > 785-749-3444 > timnevels@... > ******************************************** > > ********************************************************************** > Get up to $600 to spend on Amazon.comthis holiday season - http://www.4d.com/serverpromo.html > > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4D.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4D_Tech-Unsubscribe@... > ********************************************************************** ********************************************************************** Get up to $600 to spend on Amazon.com this holiday season - http://www.4d.com/serverpromo.html 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4D.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4D_Tech-Unsubscribe@... ********************************************************************** |
|
|
Re: 2004 4d open issueHi Chuck
There is no way to change the 4D Open timeout (60 secs). What I did is to test with 4DIC, if tcp port 19813 is open. (timeout=1sec). If the port is open, you lose 30 milliseconds if the port is closed, you save 59 seconds. You can also use my 4D Open component and change the timeout yourself (default 2 secs). Roger rvogt@dataquest.ch |
| Free embeddable forum powered by Nabble | Forum Help |