FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Ventajas de usar Array con TXBrowse
Posts: 1276
Joined: Tue Dec 28, 2010 01:29 PM
Ventajas de usar Array con TXBrowse
Posted: Mon Apr 05, 2021 11:01 PM

Hola,

Cuando utilizo mi conexion para abrir una tabla de Mysql, normalmente lleno el TXBrowse con un Array de los registros de la tabla (Una especie de Cursor).

Cual es la ventaja/desventaja de hacerlo asi en lugar de abrir la tabla y llenar directamente el TXBrowse con los registros de la misma?

FWH 25.12

Harbour/Hbmk2

Microsoft Visual C++

MySql 8.0

Antigravity

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Ventajas de usar Array con TXBrowse
Posted: Tue Apr 06, 2021 07:42 AM

If you open the MySQL query with FWH built-in MySql/MariaLib or TDolphin or TMySql or ADO you better directly use the query with TXBrowse. This enables editing of the records also and saves the time to convert into an array.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1276
Joined: Tue Dec 28, 2010 01:29 PM
Re: Ventajas de usar Array con TXBrowse
Posted: Tue Apr 06, 2021 11:53 AM

Thank you Mr. Rao

I understand it to save time, but my specific question is why many use fixes to fill the TXBrowse with data and manipulate it with options to enter / edit / delete instead of going directly to the table/database ... this is a good practice?

FWH 25.12

Harbour/Hbmk2

Microsoft Visual C++

MySql 8.0

Antigravity

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Ventajas de usar Array con TXBrowse
Posted: Tue Apr 06, 2021 01:17 PM
Compuin wrote:Thank you Mr. Rao

I understand it to save time, but my specific question is why many use fixes to fill the TXBrowse with data and manipulate it with options to enter / edit / delete instead of going directly to the table/database ... this is a good practice?


I do not clearly understand your question.
I shall be glad if you can explain more elaborately.
Thanks.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion