Many times I needed to know the content of my variables at some point ( especially in deferror ). So I created a mem-file viewer.
It contains 2 prg/exe:
mem.prg: this let you select the file to view; 3 types : 1) .dbf 2) .txt-prg-bat-ini-html(code) and 3) .mem
read_mem_file.prg: this makes a html file of the mem-file you selected. It is executed by mem.exe
The reason why I used 2 programs is because the program needs to restore the variables and this could interfere with the mem.prg variables.
It's easy to adept to your own needs and it now assumes it is located in C:\test
Code: Select all
FERASE('c:\test\mem.html')
F1 := cFILE + ' c:\test\mem.html'
EXECUTE FILE 'c:\test\read_mem_file' PARAMETERS F1 MINIMIZE
Now let's have fun and enjoy reading your .mem files!
Serge