Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid field value stays on screen when changing page
Message
From
04/12/1999 15:49:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid field value stays on screen when changing page
Miscellaneous
Thread ID:
00298749
Message ID:
00298749
Views:
80
Hi again everybody,

I have a form with a pageframe.

On the first page there is a grid with some vlues already entered in. I want the user to choose a record by clicking on one line from the grid. Base on the record choosen by the user, I refresh some view and I move to another page(page3) in the page frame, refresh everything and let the user continue.

The problem I have is that the description from the grid(page1) is display in the middle of the new page that get activated, it only desappear when I click to another page in the pageframe then back to my page3.

In "AfterRowColChange of the grid, the code is like this:

Requery("pmproj")
thisformset.form1.pageframe.activepage = 3 &&( = pageframe.project)
Thisformset.form1.lockscreen = .t.

Thisformset.form1.lockscreen = .t.

with thisformset.form1
.pageframe.notes.refresh()
.pageframe.stage.refresh()
.pageframe.prices.refresh()
.pageframe.company.refresh() && (page1)
.pageframe.project.refresh() && (page3)
.refresh()
endwith

Thisformset.form1.lockscreen = .f.


I tried different combination of refresh() and also I tried to setfocus on a specific field on page3 nothing worked out.

Should I move the code somewhere else?
Diane Robitaille eng.
Next
Reply
Map
View

Click here to load this message in the networking platform