RE: Simulating Linked Grids on different pages...

From: Lee Mitchell (Leemi_at_online.microsoft.com)
Date: 11/15/04


Date: Mon, 15 Nov 2004 21:35:44 GMT

Hi Cary:

I know there are some bugs when you refresh grids in VFP 8. I found to
examples of the bugs and workaround for them on UT. Go to
www.universalthread.com, click on the Download icon, and choose Visual
FoxPro as the product. In the ID text box of the query page, search for
"25282" and "18476."

Do these help?

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
   http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
   http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
 
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
   - VFP5 Mainstream Support retired June 30th, 2003
   - VFP6 Mainstream Support retired Sept. 30th, 2003

>>Yes. They are available at form level. It is only the number is higher
than
the VIEWABLE rows that this happens.

>"Lee Mitchell" wrote:

> Hi Cory:
>
> Have you tried making the variables you pass between the pages in the
page
> frame public? This sounds like the variable is falling out of scope.
>
> I hope this helps.
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
> Sincerely,
> Microsoft FoxPro Technical Support
> Lee Mitchell
>
> *-- VFP9 Public Beta Now Available!! --*
> Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/
>
> *-- VFP8 HAS ARRIVED!! --*
> Read about all the new features of VFP8 here:
> http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
> Purchase VFP8 here:
> http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
>
> Keep an eye on the product lifecycle for Visual FoxPro here:
> http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
> - VFP5 Mainstream Support retired June 30th, 2003
> - VFP6 Mainstream Support retired Sept. 30th, 2003
>
> >I have 4 pages each with a grid. All the grids have the same first 3
> >columns. I want the user to be able to tab between pages and stay on the
> >same row/relativerow. I have it working for the viewable rows in the
grid
> >but when I try to pass the row/relativerow from one page to the next if
the
> >number is higher that the last viewable row it ignores that and resets
it
> to
> >1/1. I was going to use the doscroll() method with a for loop and the
> >relativerow to synchronize the grids. For each page I have the following
> >code:
>
> >page click:
> > this.grid1.setfocus
>
> >grid when
> > this.ActivateCell(intCurRow, 1)
>
> >grid afterrowcolchange
> > intCurRow = this.ActiveRow
> > intRelRow = this.RelativeRow
>
> >I was trying the
> > for x = 1 to intRelRow
> > grid.doscroll(0)
> > endfor
> >on the when event and that's when I noticed my variables were getting 1/1
> >when the row passed was out of range from the previous page.
>
> >Any ideas? Thanks for your time...
>
> >Cory Bonallo
> >Retail Solutions
> >Developer



Relevant Pages