[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Visual FoxPro 9:  Logical changes after printing

Posted on 2011-03-25
4
Medium Priority
?
457 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
[X]
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
  • 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’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

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…
With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

656 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