MEM file viewer

HMG Samples and Enhancements

Moderator: Rathinagiri

Post Reply
User avatar
serge_girard
Posts: 2140
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 449 times
Been thanked: 102 times
Contact:

MEM file viewer

Post by serge_girard » Sat Nov 03, 2018 9:13 am

To all:

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   
Just replace C:\test with your own location.

Now let's have fun and enjoy reading your .mem files!

Serge
Attachments
MEM_FILE_VIEWER.rar
(2.42 MiB) Downloaded 43 times

User avatar
Steed
Posts: 366
Joined: Sat Dec 12, 2009 3:40 pm
Has thanked: 1 time
Been thanked: 2 times

Post by Steed » Tue Nov 06, 2018 6:19 pm

Thansks

franco
Posts: 296
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 9 times

Post by franco » Tue Nov 06, 2018 9:33 pm

Thanks for sharing
Franco
Franco Bushie
Canada

EduardoLuis
Posts: 594
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 37 times

Post by EduardoLuis » Tue Nov 06, 2018 9:53 pm

Hi Serge:

Thanks in advance for share your mem_vierwer.-
As i'm leaving from my office to home, i'll test later.-
With regards.
Eduardo

User avatar
luisvasquezcl
Posts: 1115
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 13 times
Been thanked: 14 times
Contact:

Post by luisvasquezcl » Wed Nov 07, 2018 2:34 am

Thanks for release.
best regards,

User avatar
mustafa
Posts: 704
Joined: Fri Mar 20, 2009 11:38 am
Location: Alicante - Spain
Been thanked: 80 times

Post by mustafa » Wed Nov 07, 2018 10:55 am

Serge
merci beaucoup pour la contribution
Mustafa

Post Reply