Hi, I have many problems with duplicated records, how the best way to block a record in network.
I use this to control a field name CODIGO, but in lan enviroment I have problem with records with the same CODIGO
oArqUlt:GoTop()
While ! oArqUlt:RecLock()
MsgBeep()
MsgStop("Registro bloqueado, tente novamente","Informação")
Loop
Enddo
...
oArqUlt:Load()
oArqCto:CONHEC := Strzero(oArqUlt:PROXCTO,6,0)
oArqUlt:PROXCTO := oArqUlt:PROXCTO + 1
oArqUlt:Save()
oArqUlt:Commit()
oArqUlt:RecUnlock()
Thanks in advance.