General Help regarding HMG, Compilation, Linking, Samples
Moderator: Rathinagiri
AUGE_OHR
Posts: 2061 Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Post
by AUGE_OHR » Sat Aug 22, 2020 6:40 pm
hi,
RPC wrote: ↑ Sat Aug 22, 2020 10:54 am
AUGE_OHR wrote: ↑ Wed Aug 19, 2020 11:12 pm
you will find hb_mvRestore() and hb_mvSave() in c:\hmg.3.4.4\0\MEMVAR\testmemvar.prg
I could not locate testmemvar.prg in my HMG or Harbour folder.
Can you please upload it
you are right, it is not part of HMG Constribution, sorry
it got it from this Thread
https://www.hmgforum.com/viewtopic.php? ... 26&p=61009
have fun
Jimmy
RPC
Posts: 284 Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Post
by RPC » Sat Aug 22, 2020 7:37 pm
Hi Jimmy
Thanks for the link. Its the file uploaded by me.
Do you have any program which uses save and restore of variable name greater than 10 alphabets ?
mol
Posts: 3720 Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:
Post
by mol » Mon Aug 24, 2020 7:41 am
RPC wrote: ↑ Sat Aug 22, 2020 7:37 pm
Hi Jimmy
Thanks for the link. Its the file uploaded by me.
Do you have any program which uses save and restore of variable name greater than 10 alphabets ?
I think that's not problem. You can use this scenario to save variables:
Code: Select all
_tmp1 := xFirstVariableWithLongName
_tmp2 := xSecondVariableWithLongName
save all like _tmp* to memfile.mem
and when you restore:
Code: Select all
restore from memfile.mem additive
xFirstVariableWithLongName := _tmp1
xSecondVariableWithLongName := _tmp2
RPC
Posts: 284 Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Post
by RPC » Mon Aug 24, 2020 11:13 am
Great solution mol.
Such a simple way to solve the problem which I was trying to figure out for a long time.
Many many thanks
serge_girard
Posts: 3165 Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB 2 DBF
Location: Belgium
Contact:
Post
by serge_girard » Mon Aug 24, 2020 2:15 pm
SAVE and RESTORE are so powerful; never seen this in any other language then dBase, Clipper, Harbour .....!
Serge
There's nothing you can do that can't be done...
RPC
Posts: 284 Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF
Post
by RPC » Tue Aug 25, 2020 2:02 pm
Thanks Serge. I did not know that.