Solved

Visual Foxpro 9.2 Browse command

Posted on 2011-09-14
2
1,267 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

25 Experts available now in Live!

Get 1:1 Help Now