Debbie
2006-03-16 16:20:47 UTC
Recently, a client changed his operating system to Linux. Since then, they
have started to get duplicate order numbers in the VFP back-office system we
designed for them. The system was written in VFP 7.0 and uses RLOCK() in
the code to get the next available order number. The code used is as
follows:
*-- Get next available number
DO WHILE !RLOCK("ordernumber")
LOOP
ENDDO
lcOrderNumber = ALLTRIM(STR(ordernumber.norder))
REPLACE ordernumber.norder WITH (ordernumber.norder + 1) in ordernumber
=TABLEUPDATE(0,.T.,"ordernumber")
UNLOCK IN ordernumber
It seems that RLOCK() might not be working as I expect it to under this
operating system, but I'm not sure why. I am not experiencing this problem
with any other clients, but none of my other clients are running Linux.
Does anyone here know of any problems with VFP and Linux?
Thanks - Debbie
have started to get duplicate order numbers in the VFP back-office system we
designed for them. The system was written in VFP 7.0 and uses RLOCK() in
the code to get the next available order number. The code used is as
follows:
*-- Get next available number
DO WHILE !RLOCK("ordernumber")
LOOP
ENDDO
lcOrderNumber = ALLTRIM(STR(ordernumber.norder))
REPLACE ordernumber.norder WITH (ordernumber.norder + 1) in ordernumber
=TABLEUPDATE(0,.T.,"ordernumber")
UNLOCK IN ordernumber
It seems that RLOCK() might not be working as I expect it to under this
operating system, but I'm not sure why. I am not experiencing this problem
with any other clients, but none of my other clients are running Linux.
Does anyone here know of any problems with VFP and Linux?
Thanks - Debbie