> 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 !
>
> JohnA 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