Solved

Visual FoxPro 9:  Logical changes after printing

Posted on 2011-03-25
4
437 Views
Last Modified: 2012-05-11
I have a simple table with .T./.F. logical fields used to control which programs run.  When I set several fields to .T. so that the respecive programs will run, then open the debugger to "watch" the status of the fields during processing, I found that, when a REPORT FORM form_name command is executed, the field value (in memory) changes to .F.  I've never seen this happen before.  For example, the table value shown in the watch window is SUBMIT.PROGRAM1=.T.  After the REPORT FORM command executes, the value in the watch window becomes SUBMIT.PROGRAM1=.F.

I also found that, if I open the Data Session window and browse my control table while processing is on hold in the debugger, the actual field value remains .T., and when I return to the debugger, the field value (in memory) has returned to .T.

Has anyone seen this behavior before?  How can I correct this?
0
Comment
Question by:cmmcginn
  • 2
  • 2
4 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 35220430
Did you also check EOF("SUBMIT") in debugger?

When you reach the EOF in DBF all logical fields will swap to .F.
0
 

Author Comment

by:cmmcginn
ID: 35242992
You were correct.  Thank you so much!  It didn't occur to me that the pointer might be at the bottom of the affected table.  I found a GO TOP was missing after the last print instruction.  It somehow was deleted during some editing a few months back.

Thanks again.
0
 

Author Closing Comment

by:cmmcginn
ID: 35242996
Perfect solution.
0
 
LVL 41

Expert Comment

by:pcelba
ID: 35243068
You are welcome.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now