?
Solved

Visual FoxPro 9:  Logical changes after printing

Posted on 2011-03-25
4
Medium Priority
?
458 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 43

Accepted Solution

by:
pcelba earned 2000 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 43

Expert Comment

by:pcelba
ID: 35243068
You are welcome.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
If anyone asked you to network diagram of the internet, it was drawn in the form of a fluffy cloud which further became known as cloud computing. Popularly cloud computing is defined as workloads that run over the internet in a commercial provider’s…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

807 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