Until now, there has been no way for a macro to easily preserve data safely & reliably between executions of the macro. Information in registers can get altered by other macros or by the enduser, or lost completely if the enduser exits Vedit.
Userini.vdm is a subroutine macro designed to be called from other macros. It is not a stand alone macro. Userini.vdm is used to read or write data to or from the user.ini file (from either a text register or a numeric register).
Each macro gets its own private section in the user.ini file. The is also a global section for sharing data between macros. Macro data is safely preserved in the user.ini file, until the calling macro needs it again.
Type of data that might be saved in the user.ini file: last filename opened, last filespec specified, last file position, block_begin & block_end file postions, various macro internal flags, etc.
Please see the userini.txt file included in the userini.zip file.
I have uploaded it to the Vedit ftp site
Would appreciate feedback from any macro programmers.