This is interesting because the UNLOAD, READ-WRITE, LOAD process was
not being done before:
$readOnlyState := read only state($inTable->)
read write($inTable->)
goto record($inTable->; $inRecNum)
c_longint($ticks)
$ticks := tickcount
Thanks,
Michael Check
On Mon, Mar 28, 2011 at 12:24 PM, Peter Jakobsson <[email protected]> wrote:
>
> On 28 Mar 2011, at 18:57, Aparajita Fishman wrote:
>
>> Maybe I'm totally wrong, but I thought you had to unload and reload a
>> record if you change its read-write state.
>
> If you loaded a record in READ ONLY mode then the record will be loaded but
> not 'locked'. (i.e. another user will be able to lock it). If you switch to
> READ WRITE, the record still won't be locked since the READ WRITE state only
> applies to subsequent record accesses.
>
> To lock the record that you're already sitting on you need to switch to READ
> WRITE, unload the record, then re-load it. I presume that's the idea behind
> the command.
>
> Peter
>
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/