?
Solved

Visual Foxpro 9.2 Browse command

Posted on 2011-09-14
2
Medium Priority
?
1,515 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 1000 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

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…
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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