Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Visual FoxPro 9:  Logical changes after printing

Posted on 2011-03-25
4
440 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 42

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 42

Expert Comment

by:pcelba
ID: 35243068
You are welcome.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

837 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