Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Exe retaining old data

Exe retaining old data

Exe retaining old data

I have built an EXE that will pull some data and put the data into some text boxes. I use this small exe to help make changes where I need to by updating some tables on my own, then recheck the values. The problem I am encountering is that when I update the tables and check the exe again the old data is still present.

If I close the exe and reopen it I still get the old data.

If I attempt to modify the form in the IDE and run the form there the new values are posted to the textboxes as they should be.

IT has been suggested that I have more than one copy of the tables but have ensured that this isn't true.

RE: Exe retaining old data

If you have included the table(s) into the exe, then the exe won't use the external tables, only the "internal" ones. These tables would then be read-only, but the error message may be overridden by your code.

RE: Exe retaining old data

I haven't included any tables in the program.

RE: Exe retaining old data

I suggest that you start both the exe and VFP at the same time. Then you can easily open the table in VFP and see if anything happens to the tables. Another thing to check, is that all the different Set values are identical in the exe and the IDE. Add a List Status To File Somefilename.txt to both programs (different file names), and compare the two files. Make sure to Use the table(s) in question first, so that you can double check that you really work with the same tables.

RE: Exe retaining old data

Are the tables buffered? And, if so, are you sure the data in the buffers is being committed?


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Exe retaining old data

The tables are not buffered.

RE: Exe retaining old data

Did you try my List Status procedure? I have read numerous cases similar to yours, and nearly all was solved that way.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close