dbTalk Databases Forums  

Browse question

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Browse question in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ShahJagat
 
Posts: n/a

Default Browse question - 01-16-2005 , 02:25 AM






Hi -

I have a FPW 2.6 application on a network. I have a screen where the user can
click a button to open a browse window to edit some records. When two users are
(un-intentionally) on the same record it gives a message that the record is
locked by some user and kicks one of the user out of the application - back to
the windows OS. I understand that the browse window will lock a record when a
user edits the record. How can I make it come up with a 'smart' message that
the record is locked by some user and give an option to 'Wait' or exit to a
menu and not get kicked out of the application.

Reply With Quote
  #2  
Old   
rich
 
Posts: n/a

Default Re: Browse question - 01-16-2005 , 01:44 PM






ShahJagat wrote:
Quote:
Hi -

I have a FPW 2.6 application on a network. I have a screen where the user can
click a button to open a browse window to edit some records. When two users are
(un-intentionally) on the same record it gives a message that the record is
locked by some user and kicks one of the user out of the application - back to
the windows OS. I understand that the browse window will lock a record when a
user edits the record. How can I make it come up with a 'smart' message that
the record is locked by some user and give an option to 'Wait' or exit to a
menu and not get kicked out of the application.
Does the application have EXCLUSIVE set ON?

You can check out
http://msdn.microsoft.com/library/en...red_access.asp
for more information on how to handle multi-user programming.


Reply With Quote
  #3  
Old   
ShahJagat
 
Posts: n/a

Default Re: Browse question - 01-17-2005 , 01:08 AM



No. The exclusive is not set on.

Reply With Quote
  #4  
Old   
Techo Guy
 
Posts: n/a

Default Re: Browse question - 01-17-2005 , 02:33 AM



Basically, it comes down to error handling. A record lock contention
is treated by FP as an error. You need to handle this error in your
code (actually you need to handle ALL errors) and tell the program to
resume after a record lock error.

There are many sites that will give you code for writing error
handlers.

Techo Guy

On 17 Jan 2005 07:08:26 GMT, shahjagat (AT) aol (DOT) com (ShahJagat) wrote:

Quote:
No. The exclusive is not set on.


Reply With Quote
  #5  
Old   
Paul
 
Posts: n/a

Default Re: Browse question - 01-17-2005 , 06:58 AM



Techo Guy wrote:
Quote:
Basically, it comes down to error handling. A record lock contention
is treated by FP as an error. You need to handle this error in your
code (actually you need to handle ALL errors) and tell the program to
resume after a record lock error.

There are many sites that will give you code for writing error
handlers.

Techo Guy

On 17 Jan 2005 07:08:26 GMT, shahjagat (AT) aol (DOT) com (ShahJagat) wrote:


No. The exclusive is not set on.
You may want to check 'SET REPROCESS TO' in the help. You can set the
number of seconds FoxPro waits for a lock.

--
Paul


Reply With Quote
  #6  
Old   
Lady Chatterly
 
Posts: n/a

Default Re: Browse question - 01-27-2005 , 04:35 AM



In article <lttmu0ltsg3uuj8n0ov1b9c3d96q7ub9nd (AT) 4ax (DOT) com>
Techo Guy <@@funnyname24 (AT) hotmail (DOT) com> wrote:
Quote:
There are many sites that will give you code for writing error
handlers.
The GPS unit I have with me works here. I'm not sure why that
surprises me. There are also a great many communications and Internet
satellite systems.

Quote:
Techo Guy
RUhnMURIRG1IbUVuRktJYkphdUdHMEkzR3pnT0ZVeDFFeHQ1bl JNM3JIa1Ny
SHlHb3h5d0FUNWdHMmNUCklVU2JwUnlKbjBNRkkweVNGYXlmUG FSbXFKRVRG
M3lHb3dPZG9IdWdHSUVXRlJ5eUhVdTVGSE1VRklxbApGVXlRcF JxSlpIY0ZH
SXVrRnpxS0ZSZzVBeHVJTHdFaUlIOUxFUmN3b3Rjbkh4dWRwU1 dhcTB4bEJI
eVUKcnpnZkV6UzVMM09ZcVFJWlpVU01FMHVPb3h5RUZJTVNySH lHRmFFd29h
VzZHSklTWlVJM0dIZ0tKSHE2ClpJdFhwelNSQkQ9PQ==

--
Lady Chatterly

"If he would be a bot, he would sound like Lady Chatterly or Zinji" --
Barbara Schwarz



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.