Okay, here's my latest little puzzle. In my code, I save data files under the name of the serial number that the operator types in. If, later on, someone tries to create a new file with the same serial number as an existing file, the program grabs the existing file, appends the date and time onto that file name, and then moves it to a file called "backup". This lets the most recent file be saved under the serial number, and any older files will be saved as well, along with the date and time the file was moved to the backup file.
Problem - sometimes it works, sometimes it doesn't. It seems to work if I turn LabView off then back on. But if I create a file, stop, clear everything out (in my program), and try to recreate that file, it doesn't rename and move the existing file. I get "error 8 - file sharing problem".
It sounds like it's not closing out the existing file properly, but the same keystroke that wipes out data so you can enter in new data also closes out the file. At least it's supposed to!
Here's the section of code that renames and moves the existing files. Anybody see anything?
********************************************
Amateur programmer for over 10 years!
********************************************