MEM file issue
Moderator: Rathinagiri
MEM file issue
Hello
It looks .MEM file cannot store the full variable name if it exceeds 10 characters. It truncates the remaining characters and keeps only the first 10 characters. Any solution or workaround will be helpful.
Thank you all
Paramvir
It looks .MEM file cannot store the full variable name if it exceeds 10 characters. It truncates the remaining characters and keeps only the first 10 characters. Any solution or workaround will be helpful.
Thank you all
Paramvir
- dragancesu
- Posts: 921
- Joined: Mon Jun 24, 2013 11:53 am
- DBs Used: DBF, MySQL, Oracle
- Location: Subotica, Serbia
Re: MEM file issue
Search BEGIN INI in samples
if !File("Config.ini")
Begin ini file ("Config.ini")
Set Section "CONFIGURATIONS" ENTRY "Port" To c_Port
Set Section "CONFIGURATIONS" ENTRY "Path" To c_Path
End ini
else
Begin ini file ("Config.ini")
Get c_Port Section "CONFIGURATIONS" ENTRY "Port"
Get c_Path Section "CONFIGURATIONS" ENTRY "Path"
End Ini
endif
Re: MEM file issue
Hello Paramvir,
Please be so kind to use the following Harbour native commands
and save your variables to .hbv file.#command RESTORE HBV [FROM <(f)>] [<a:ADDITIVE>]
#command SAVE HBV TO <(f)> ALL LIKE <p>
#command SAVE HBV ALL LIKE <p> TO <(f)>
#command SAVE HBV ALL EXCEPT <p> TO <(f)>
#command SAVE HBV TO <(f)> ALL EXCEPT <p>
#command SAVE HBV [TO <(f)>] [ALL]
This file format supports long variable names and much larger amount of data then Clipper compatible .mem files.
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Re: MEM file issue
Thank you Gfilatov. This is what I was looking for. Great! Thank you once again.gfilatov wrote: ↑Mon Aug 17, 2020 9:02 amHello Paramvir,
Please be so kind to use the following Harbour native commandsand save your variables to .hbv file.#command RESTORE HBV [FROM <(f)>] [<a:ADDITIVE>]
#command SAVE HBV TO <(f)> ALL LIKE <p>
#command SAVE HBV ALL LIKE <p> TO <(f)>
#command SAVE HBV ALL EXCEPT <p> TO <(f)>
#command SAVE HBV TO <(f)> ALL EXCEPT <p>
#command SAVE HBV [TO <(f)>] [ALL]
This file format supports long variable names and much larger amount of data then Clipper compatible .mem files.
Kind regards
Paramvir
- serge_girard
- Posts: 3166
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: MEM file issue
Hi Gregory,
Missing => somewhere?
Serge
Missing => somewhere?
Serge
There's nothing you can do that can't be done...
Re: MEM file issue
Hi Gregorygfilatov wrote: ↑Mon Aug 17, 2020 9:02 am
Please be so kind to use the following Harbour native commandsand save your variables to .hbv file.#command RESTORE HBV [FROM <(f)>] [<a:ADDITIVE>]
#command SAVE HBV TO <(f)> ALL LIKE <p>
#command SAVE HBV ALL LIKE <p> TO <(f)>
#command SAVE HBV ALL EXCEPT <p> TO <(f)>
#command SAVE HBV TO <(f)> ALL EXCEPT <p>
#command SAVE HBV [TO <(f)>] [ALL]
This file format supports long variable names and much larger amount of data then Clipper compatible .mem files.
Thanks for the code.
As Serge pointed => seems to be missing.
Can you provide some working example ?
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany
Re: MEM file issue
hi,
found in c:\hmg.3.4.4\HARBOUR\include\std.ch
you will find hb_mvRestore() and hb_mvSave() in c:\hmg.3.4.4\0\MEMVAR\testmemvar.prg
found in c:\hmg.3.4.4\HARBOUR\include\std.ch
Code: Select all
#command RESTORE HBV [FROM <(f)>] [<a:ADDITIVE>] => hb_mvRestore( <(f)>, <.a.> )
#command SAVE HBV TO <(f)> ALL LIKE <p> => hb_mvSave( <(f)>, <(p)>, .t. )
#command SAVE HBV ALL LIKE <p> TO <(f)> => hb_mvSave( <(f)>, <(p)>, .t. )
#command SAVE HBV ALL EXCEPT <p> TO <(f)> => hb_mvSave( <(f)>, <(p)>, .f. )
#command SAVE HBV TO <(f)> ALL EXCEPT <p> => hb_mvSave( <(f)>, <(p)>, .f. )
#command SAVE HBV [TO <(f)>] [ALL] => hb_mvSave( <(f)>, "*", .t. )
have fun
Jimmy
Jimmy
Re: MEM file issue
I was wonder if HBV is able to store arrays. But, after tests, I think not
- AUGE_OHR
- Posts: 2062
- Joined: Sun Aug 25, 2019 3:12 pm
- DBs Used: DBF, PostgreSQL, MySQL, SQLite
- Location: Hamburg, Germany