In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Refreshing TDBFBrowse

Xailer English public forum
Responder
Guest

Refreshing TDBFBrowse

Mensaje por Guest »

If you have 2 Browses on the screen, e.g. BrowseA and BrowseB, and you
want to change the pointer of each browse when the other moves, do you
do a Refresh()?
For example, you move to another row in BrowseA. You build a key
compatible with the BrowseB table index from the current field values in
the BrowseA table. You seek those values in the BrowseB table. Then
you refresh() the BrowseB control.
Is that correct? It doesn't seem to be working, in my case. I make
sure each table (there are actually 4 in total) is indexed, but none of
the rows in the other Browses get changed, except for the table
currently pointed to.
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9246
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Refreshing TDBFBrowse

Mensaje por ignacio »

Childers,
It should work, I hope you can make a small sample so we may be able to help
you.
Regards,
"Childers" <nospamplease@nycap.rr.com> escribió en el mensaje
news:44a7dd90$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> If you have 2 Browses on the screen, e.g. BrowseA and BrowseB, and you
> want to change the pointer of each browse when the other moves, do you do
> a Refresh()?
>
>
> For example, you move to another row in BrowseA. You build a key
> compatible with the BrowseB table index from the current field values in
> the BrowseA table. You seek those values in the BrowseB table. Then you
> refresh() the BrowseB control.
>
> Is that correct? It doesn't seem to be working, in my case. I make sure
> each table (there are actually 4 in total) is indexed, but none of the
> rows in the other Browses get changed, except for the table currently
> pointed to.
>
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Refreshing TDBFBrowse

Mensaje por Ingo »

Are you using DBSetRelation() to connect the both dbf's?
Regards
Ingo
"Childers" <nospamplease@nycap.rr.com> schrieb im Newsbeitrag
news:44a7dd90$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> If you have 2 Browses on the screen, e.g. BrowseA and BrowseB, and you
> want to change the pointer of each browse when the other moves, do you do
> a Refresh()?
>
>
> For example, you move to another row in BrowseA. You build a key
> compatible with the BrowseB table index from the current field values in
> the BrowseA table. You seek those values in the BrowseB table. Then you
> refresh() the BrowseB control.
>
> Is that correct? It doesn't seem to be working, in my case. I make sure
> each table (there are actually 4 in total) is indexed, but none of the
> rows in the other Browses get changed, except for the table currently
> pointed to.
>
Guest

Refreshing TDBFBrowse

Mensaje por Guest »

>>Are you using DBSetRelation() to connect the both dbf's?<<
No. Instead, there are DbSeek()s taking place in the event.
I'll put together a sample over the weekend, but I can't use the
original tables.
Guest

Refreshing TDBFBrowse

Mensaje por Guest »

Got it. The problem is that I was using the Refresh() method from the
Superclass, rather than using the TDbfBrowse:Refresh() method.
Responder