[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Visual Foxpro 9.2 Browse command

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

Independent Software Vendors: 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

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…
This shares a stored procedure to retrieve permissions for a given user on the current database or across all databases on a server.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

831 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