Page 1 of 2

Xbase++ : Bin2Var() / Var2Bin()

Posted: Wed Oct 23, 2019 10:40 pm
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 :?:

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

Posted: Wed Oct 23, 2019 10:42 pm
by apais
HB_Serialize() / HB_DeSerialize()

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

Posted: Wed Oct 23, 2019 10:53 pm
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

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

Posted: Wed Oct 23, 2019 11:20 pm
by apais
Look for the changelog file

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

Posted: Thu Oct 24, 2019 5:34 am
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

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

Posted: Thu Oct 24, 2019 8:50 pm
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 :?:

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

Posted: Thu Oct 24, 2019 11:25 pm
by apais
It comes in harbour distribution from github
It's named changelog

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

Posted: Fri Oct 25, 2019 3:42 am
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.

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

Posted: Fri Oct 25, 2019 1:56 pm
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.

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

Posted: Fri Oct 25, 2019 7:48 pm
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.