Hi!
In the help I see:
To lock multiple records, you must have SET MULTILOCKS on and you must include the work area number (nWorkArea) or alias (cTableAlias) of the table in which you attempt to lock multiple records. It is possible another record is already locked by your application, so next time RLOCK() used it cannot lock record because SET MULTILOCKS is OFF. Form the scan loop it is obvious that you require SET MULTILOCKS ON. Also, what OS and Network you use?
>In the click event of save button of a FORM I have code like (I.E. highly sinplifed)
>
>SCAN expr
> IF RLOCK('name')
> m.newvalue = expr
> REPLACE field WITH m.newvalue IN name
> ENDIF
>ENDSCAN
>
>Init has SET REPROCESS 10. Problem RLOCK() ALWAYS returns .F. and thus replace is not executed. Any help appriciated.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.