Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read .MEM file from C#
Message
From
28/06/2023 10:04:58
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01686786
Message ID:
01686792
Views:
61
>>>>Hi all!
>>>>
>>>>We are retrieving data from a VFP app. No problem for the standard DBF data but some of the data was saved in .MEM variables files. So easy to RESTORE FROM in VFP but we haven't found a way to convert them from C#. Variable names and variable types appear in clear in the .MEM file. Character type values are also readable but numeric and date values seem to be encoded. We haven't found a description of the structure of the .MEM file. Does any one have a solution?
>>>
>>>Do you have to do this on an ongoing basis? If not, just restore the file once in VFP and then save the data out to some better format.
>>>
>>>If you need to share data over time, is it possible to change the VFP app? MEM files are incredibly outdated.
>>>
>>>Tamar
>>
>>Thank you Tamar,
>>
>>Unfortunately, we will need to do it often (hundreds or thousands times) and can't change the VFP app. In the meantime, I found some info about the Clipper .MEM file format here: http://www.zelczak.com/clipp_en.htm
>>
>>It might me similar to the VFP one, right?
>
>Would an alternative approach be to create a new VFP app (COM server, perhaps) whose sole purpose is to read .MEMs and save them in a desired format for consumption by C#?
>
>hth

Thanks Alex. This is an option we considered but, as our apps are in .NET Core and might one day run on different OSs, we try to avoid any COM or external libs.
Gensoft Sàrl
Christian Carron
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform