Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: John Tippett
  Where is John Tippett?
 Fredericksburg
 Virginia - United States
 John Tippett
 Tags
Subject: RE: Maintain current record across tabs on Page Frame ?
Thread ID: 89671 Message ID: 89898 # Views: 24 # Ratings: 1
Version: Visual FoxPro 9 Category: Forms
Date: Saturday, March 04, 2006 10:04:39 AM         
   


> Hi,
>
> I have created a form with a page frame that has multiple tabs.
> The tabs all have fields referring to the same table.
>
> I used the forms wizard, so I have a navigation bar.
>
> My problem is that when I use the nav bar to change records, it only changes the record for the info on that tab. So, when I change tabs, it's referencing a different record.
>
> How do I tell it to stay on the same record, no matter what tab I am on ?
> Seems strange that this is not the default. I am new to Visual FoxPro, the last time I programmed was with version 2.5!
> I must be missing some key concept here...thanks for your advice !
>
> John


A bit similar to what Barbara did is this.
I have a textbox that I set on the pages of the pageframe.
The properties are as:
Readonly = .T.
tabstop = .F.
Top = -100

In the UIEnable method I have something like:
if lEnable
	this.parent.refresh()
endif


This textbox is added to each page in the init of the pageframe, like:

for lni = 1 to this.pagecount
	this.pages(lni).addobject("pagerefresher", "PgfRefreshPage")
endfor


Boudewijn LutgeĀ®ink
My Blog is here


COMPLETE THREAD

Maintain current record across tabs on Page Frame ? Posted by John Tippett @ 3/2/2006 1:50:33 AM
RE: Maintain current record across tabs on Page Frame ? Posted by Barbara Peisch @ 3/2/2006 2:13:37 AM
RE: Maintain current record across tabs on Page Frame ? Posted by Zaldy Santos @ 3/2/2006 4:16:14 AM
RE: Maintain current record across tabs on Page Frame ? Posted by Boudewijn Lutgerink @ 3/4/2006 10:04:39 AM
thanks ! Posted by John Tippett @ 3/6/2006 2:48:26 AM