I was asked a question about how to get the full filename from the Recent Files menu in MapInfo. The text can be picked off by using the MenuitemInfoByHandler() function, but how do you exapnd a file name like G:\MapInfo\...\LetterTemplate.wor?
My first thought is to use the Windows API functions FindFirstFile() and FindNextFile() and then recursively descend down all directories below G:\MapInfo\, looking for the first file named LetterTemplate.wor. But if you have two versions of it in say, the following places: G:\MapInfo\dirA\LetterTemplate.wor G:\MapInfo\dirB\LetterTemplate.wor how does MapInfo know which one to use from the string G:\MapInfo\...\LetterTemplate.wor? Or does MI keep a full copy of the filename hidden behind the menu and just display the munged version? Anyone know how this is done? _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
