Maptitude GISDK Help

SetMRUFiles()

Summary

Sets the list of Most Recently Used files displayed in the menu system and the macro to run when one is chosen.

 

Syntax

SetMRUFiles(array files, string macro_name)

 

Argument

Contents

files

A list of pairs {short_name, long_name}, where short_name is the string that will appear on the MRU menu, and long_name is the full path passed to the macro

macro_name

The name of the macro function to run when one of the files is chosen

 

Notes

Example

Macro "Open MRU File" (filename)

// This macro is run when an MRU file is selected from a menu item.

     OpenWorkspace(filename, )

endMacro

 

Macro "Set MRU List"

// Add a  file  to the MRU list, and specify

// the macro to open MRU files

     folder = RunMacro("G30 Tutorial Folder")

     files = {{"NELayers", folder + "NELayers.wrkz"}}

     SetMRUFiles(files, "Open MRU File")

EndMacro

 

 

©2025 Caliper Corporation www.caliper.com