HB_DBCreateTemp

HB_DBCreateTemp

Postby Otto » Sun Feb 02, 2020 4:42 pm

Hello,
does someone know if a memory file can be accessed by another program, too,
And if yes, how can I open the file.

Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Re: HB_DBCreateTemp

Postby karinha » Mon Feb 03, 2020 12:26 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: HB_DBCreateTemp

Postby MOISES » Mon Feb 03, 2020 8:05 pm

Does it work under xHarbour?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am

Re: HB_DBCreateTemp

Postby Otto » Mon Feb 03, 2020 10:23 pm

Hello,

Thank you for your help.
In the meantime, I saw that this opens the file in exclusive.
So I can't use it to exchange data between sessions in mod harbour.
But Antonio suggested another way:

HB_setenv(), HB_getenv().
This is working for me.

Best regards,
Otto

Function Main()
hb_SetEnv( "PASSWORD","1234")
? hb_GetEnv( "PASSWORD" )
return nil

? hb_GetEnv( "PASSWORD" )
Please see all my browsers show 1234 in all sessions gives back 1234.
If I shut down the server and restart
HB_getenv() is empty.

This way, I do not have to store my encryption password on the server.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests