Solved

Visual FoxPro 9:  Logical changes after printing

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

18 Experts available now in Live!

Get 1:1 Help Now