FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Virtual strings in DBF
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Virtual strings in DBF
Posted: Thu Sep 28, 2023 09:05 AM

Is it possible to work with virtual (not physical) strings in DBF ?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 09:27 AM

Dear Yuri,

What is a virtual string ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 09:49 AM

Something like that:

In the open DBF (In exclusive mode), we add lines, but do not save them to disk.

These lines exist only while the database is open.

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 10:45 AM

Natter,

Prueba de usar el rddarray

C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 11:05 AM

Thanks for the advice. Is it possible to learn more about using RddArray ?

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 11:24 AM
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 11:37 AM

If I understood correctly, then we are talking about creating a DBF in memory and working with it.

If so, then this is not exactly what I need. I need to open an existing DBF on disk (which already has some strings) and

add virtual strings to it. I.e., the physical strings of this DBF will be available to everyone, and the virtual ones only to me.

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 12:19 PM

Then u could use triggers with rdd. Every time update a field then it will update a dbf tmp with the same struct.

C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 12:25 PM
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 01:08 PM
hi Natter.

what about "GhostRec" :idea:
greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 01:32 PM

What is this ?

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 03:34 PM

hi Natter,

"GhostRec" -> EOF() + 1

greeting,

Jimmy
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Virtual strings in DBF
Posted: Thu Sep 28, 2023 06:36 PM

Thank you, Jimmy, Interesting idea !

Continue the discussion