Harbour Dialect project: issue with “RESTORE FROM” command and membvar.xh
Posted: Sun Jul 02, 2023 2:12 pm
Hi all,
my project dialect is Harbour; I’ve added the following references: The pre-processed code shows that the RESTORE FROM command was not translated/substituted.If I manually do so, i.e. replace the “RESTORE FROM” with “MRestore( "BFST")”, the code compiles without error.
Question: Is there something I need to do to ensure the memvar.xh include file is pulled in (I tried “ #include memvar.xh”) ?
Long term, I will replace all use of .MEM files with either a single-record table or, as I’ve done with some of the independent modules I’ve converted so far, JSON files. Legacy .MEM files have been a somewhat primitive structure and cause for issues in multi-user environments.
Thanks folks.
Roland
my project dialect is Harbour; I’ve added the following references:
- XSharp.Core
- XSharp.RT
- Enable MEMVAR support
- Enable undeclared variable support
- Implicit casts and conversions
- Treat missing types as USUAL
Code: Select all
RESTORE FROM ("BFST") ADDITIVE
Question: Is there something I need to do to ensure the memvar.xh include file is pulled in (I tried “ #include memvar.xh”) ?
Long term, I will replace all use of .MEM files with either a single-record table or, as I’ve done with some of the independent modules I’ve converted so far, JSON files. Legacy .MEM files have been a somewhat primitive structure and cause for issues in multi-user environments.
Thanks folks.
Roland