Solved

Visual Foxpro 9.2 Browse command

Posted on 2011-09-14
2
1,388 Views
Last Modified: 2012-12-01
Converting a proven VFP 6 program to VFP 9.2: A Browse command is executed with two unrelated windows defined and activated. The Browse uses "Window xx", not "In Window xx". The first time the Browse is executed,  the two unrelated windows are cleared. On all subsequent execution of the same Browse under exactly the same conditions, the unrelated windows are not cleared. Of course, they should not have been cleared the first time. There are to "CLEAR" commands in any of the associated code. Numerous tries of minor changes do not solve the problem. If the Browse is skipped, the windows are not cleared. A simpler version of the Browse has been tried to no avail.
0
Comment
Question by:dealmaster
[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 Comments
 
LVL 12

Accepted Solution

by:
jrbbldr earned 500 total points
ID: 36537043
A Browse command is executed with two unrelated windows defined and activated. The Browse uses "Window xx", not "In Window xx".

The Browse uses "Window xx", not "In Window xx"


My first question would be why are you using  "Defined Windows for your Browse".  
That is OLD non-VFP code methodology.  
You should be using Grids within a VFP9 Form.

A Grid has a RecordSourceType & RecordSource which are defined.

What is displayed in the Grids is a result of what records are 'visible' within the RecordSource.
If the Grid were to appear as 'cleared' then something has occurred which has made the records in the RecordSource not visible such as a SET FILTER TO <something> or SET INDEX TO <some tag>, etc.

The VFP CLEAR command only clears the desktop or active window 'screen', not the records being displayed in a BROWSE Window or Grid.

Good Luck
0
 

Author Comment

by:dealmaster
ID: 36555058
The program was written before VFP existed and works well under VFP 6.0. In any case, I have solved the probelm
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Report to PDF and TIF 31 800
Converting a Very Old FoxPro Database Over to Excel 3 2,061
How can i delete a , space in VFP9 4 98
Cannot locate the COMSPEC environment variable 8 185
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…
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 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