General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
File not saved, windows message
I use the table addcode to generate codes to the table emails.dbf
I am in a network
I received the balloon messagem in the bottom of my windows
"could not save data to file addcode.dbf... etc... etc.."
What happend:
The emails.cod is arealdy 740, but addcode.dbf is still 738
This means that addcod.dbf already got code 740, but is back
to its former 738 value
But it's strange because addcode is not a buffered table !
Please check code below, and help if possible:
=================================================
IF !USED("ADDCODE")
USE ADDCODE IN 0 SHARED
ENDIF
SELECT ADDCODE
GOTO 1
DO WHILE !FLOCK()
ENDDO
REPLACE ADDCODE.ID WITH ADDCODE.ID + 1
STORE ADDCODE.ID TO AD_CODE
FLUSH
UNLOCK
replace emails.cod WITH ad_code
=================================================
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only