Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Utility for Foxpro 2.6a app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00825194
Message ID:
00826010
Vues:
24
Hi Chris,

Are you sure that you don't update one table and than open different one? Also, can you see updates if you don't close the table after replace but open it in another VFP session?

>Thanks for you help - I have now written the utility in VFP6 and I am having trouble updating a field in a Foxpro 2.6a table. It's the only field I have to update! The field is a charater field, 1 character in length, which is normally empty but when my utility has processed the record I wanted it to updated the field with a "Y" so that it is not included in future processes -here is the code...
>
>IF .pDoSales THEN
>	STORE .laSourceFiles(2) TO lcOpenFile
>	STORE .T. TO llCreate
>	IF NOT .mOpenTable(lcOpenFile, "SHARED", .T., "source_stran") THEN
>		RETURN .F.
>	ENDIF
>	IF FILE("c:\saltran.dbf") THEN
>		lnAnswer = MESSAGEBOX("File 'C:\SALTRAN.DBF' already exists - overwrite this file?", 4 + 32 + 0, oApp.ProdName)
>		IF lnAnswer <> 6 THEN
>			llCreate = .F.
>		ENDIF
>	ENDIF
>	IF llCreate THEN
>		lcSafety = SET("SAFETY")
>		SET SAFETY OFF
>		SELECT source_stran
>		COPY TO c:\saltran TYPE FOX2X FOR EMPTY(st_transfd)
>		SET SAFETY &lcSafety
>		SELECT source_stran
>		REPLACE st_transfd WITH "Y" ALL
>		FLUSH
>	ENDIF
>	.mCloseTable("source_stran")
>ENDIF
>
>
>If I browse the table just after the REPLACE statement the field is updated -but if I open the table after it has been closed it's empty!
>
>I have functions for opening and closing tables which I have checked - the table is getting closed.
>
>Any ideas appreciated!
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform