Paradox Community

Items in pnews.paradox-programming

Subject:lockRecord() - doesn't
Date:Tue, 19 Jul 2022 20:26:41 -0800
From:Peter <peterspammenot@whiteknight.email>
Newsgroups:pnews.paradox-programming
So I've been playing with this for the better part of the day and I 
can't figure it out.

Machine_1
I place a lockrecord on a record in a table but when I display locks 
(interactive) it does not show up.

eg.
tcu.open(":SCHEDULE:ProcLock.db")
tcu.edit()
tcu.lockRecord()    ;//lock 1st record, the only record in the tbl

If I try programmatically:
    1) enumlocks(), doesn't show up
    2) tcu.lockStatus("Any"), doesn't show up


Machine_2
When I display locks (interactive) on Machine_2 it also does not display 
the record lock from Machine_1 - just the open lock.

If I do it programmatically (enumLock), same thing, the record lock that 
is set by Machine_1 does not show.

I don't want to use a table/session lock, just a single record. Any 
secrets on getting all Machines to recognize a lockRecord()?

Thanks


Copyright © 2004 thedbcommunity.com