Xbase++ : Bin2Var() / Var2Bin()

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Xbase++ : Bin2Var() / Var2Bin()

Post by AUGE_OHR »

hi,

next Xbase++ to harbour Question
Bin2Var( <cBinaryString> ) --> xValue
Var2Bin( <xValue> ) --> cBinaryString
Store Array to Memo

Code: Select all

   REPLACE LAYOUT->APPARRAY WITH Var2Bin(aArray)
Read Array from Memo

Code: Select all

   aArray      := Bin2Var(LAYOUT->APPARRAY)
how to do this with harbour :?:
have fun
Jimmy
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by apais »

HB_Serialize() / HB_DeSerialize()
Angel Pais
Web Apps consultant/architect/developer.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by AUGE_OHR »

apais wrote: Wed Oct 23, 2019 10:42 pm HB_Serialize() / HB_DeSerialize()
this was a Quick Answer , THX

p.s. where do i find those HB_ Function :?:
it is not in https://harbour.github.io/doc/harbour.html
have fun
Jimmy
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by apais »

Look for the changelog file
Angel Pais
Web Apps consultant/architect/developer.
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by edk »

AUGE_OHR wrote: Wed Oct 23, 2019 10:53 pm
apais wrote: Wed Oct 23, 2019 10:42 pm HB_Serialize() / HB_DeSerialize()
this was a Quick Answer , THX

p.s. where do i find those HB_ Function :?:
it is not in https://harbour.github.io/doc/harbour.html
https://github.com/Petewg/harbour-core/wiki
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by AUGE_OHR »

edk wrote: Thu Oct 24, 2019 5:34 am
p.s. where do i find those HB_ Function :?:
it is not in https://harbour.github.io/doc/harbour.html
https://github.com/Petewg/harbour-core/wiki
Yes ... this is what i'm looking for :!:

is there a Way to get it as File to have it if Offline :?:
have fun
Jimmy
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by apais »

It comes in harbour distribution from github
It's named changelog
Angel Pais
Web Apps consultant/architect/developer.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by AUGE_OHR »

apais wrote: Thu Oct 24, 2019 11:25 pm It comes in harbour distribution from github
It's named changelog
Yes ... but it does not help me when start with harbour.

i need full syntax include Type of Parameter to be sure that i can use that function ... and if possible Demo Sample.

---

Xbase++ often use "own Name" so if i ask for Bin2Var() / Var2Bin() i have attach a Array Sample.
i guess that was the Bridge to HB_Serialize() / HB_DeSerialize() what i never have found without your help.

---

i found out that c:\hmg.3.4.4\HARBOUR\include\harbour.hbx contain what i search for 1st Step.

when search e.g. for "Thread" i got

Code: Select all

DYNAMIC hb_threadDetach
DYNAMIC hb_threadID
DYNAMIC hb_threadJoin
DYNAMIC hb_threadOnce
DYNAMIC hb_threadOnceInit
DYNAMIC hb_threadQuitRequest
DYNAMIC hb_threadSelf
DYNAMIC hb_threadStart
DYNAMIC hb_threadTerminateAll
DYNAMIC hb_threadWait
DYNAMIC hb_threadWaitForAll 
when have a "keyword" i can begin to search how Syntax look like.
have fun
Jimmy
User avatar
apais
Posts: 441
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF, Leto, MariaDB, SQLite
Location: uruguay
Contact:

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by apais »

Harbour/HMG are Open Source projects, so you can't ask for anything you are not willing to do yourself.
It's made by people who donated for free their own time.
If you find lack of documentation of course you are invited to do it ...
... or do what we all do: deduct documentation from source code.
Angel Pais
Web Apps consultant/architect/developer.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Xbase++ : Bin2Var() / Var2Bin()

Post by AUGE_OHR »

hi,

sorry i don't want to blame anyone.

it is hard for a Newbie to find Information if i do not know the "keyword" to search so i ask in Forum.
as i most work Offline i need to download Help file.
have fun
Jimmy
Post Reply