I probably didn't explain it well enough. It's not that the change is not getting made. It's foxpro not seeing the change. I am not updating the text file programatically, that is happening in an external application. autoCAD
I press my form button and it converts a file to a string
I then minimize my application and open the text file with notepad.
I change the value manually and save it.
I maximize my application and press my button again and the value has not changed. It is still the original value.
*&
*& Create the file!
STRTOFILE("0001","c:\test.txt")
CVALUE=FILETOSTR('C:\test.TXT')
? CVALUE
*&
*& Open the file and update!
*& use this one to open read-only
*& open c:\test.txt with notepad change the value save and rerun the above
*& 2 lines of code
*& you get the first value not the changed value
I just tested it again in the command window and a basic form. It doesn't give me the error. The error is only occuring inside my framework. Ill be contacting codemine next
Thanks
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement