Progress_Learner
Member
Hi All, hope you are doing well !
I know the use of Strong Scope with Exclusive-Lock but what should we do in case of find statements with no-lock. Example below:
1. Result is Yes.
2. Result is No:
3. We can’t refer buffer outside strong scope.
I think we should take care of this buffer even it’s in no-lock state, if yes then what should be the correct approach (point 2 or 3 or anything else). Please share your inputs on this.
Regards,
Learner
I know the use of Strong Scope with Exclusive-Lock but what should we do in case of find statements with no-lock. Example below:
1. Result is Yes.
Code:
define variable lCheck as logical no-undo.
if lCheck then
do:
find first table no-lock no-error.
end.
message available (table) view-as alert-box.
2. Result is No:
Code:
define variable lCheck as logical no-undo.
if lCheck then
do:
find first table no-lock no-error.
end.
release table.
message available (table) view-as alert-box.
3. We can’t refer buffer outside strong scope.
Code:
define variable lCheck as logical no-undo.
if lCheck then
do for table:
find first table no-lock no-error.
end.
//message available (table) view-as alert-box.
I think we should take care of this buffer even it’s in no-lock state, if yes then what should be the correct approach (point 2 or 3 or anything else). Please share your inputs on this.
Regards,
Learner