8/30/2023 0 Comments Mindmanager Macros![]() ![]() "End With": the expression "Documents(False).Add" adds a new map to the visible documents collection (which excludes hidden documents), and returns a pointer to the new Document object. It does not need to be the first piece of code. There must be a Sub Main somewhere in every script. "End Sub" declares a subroutine called Main, which is where execution always begins. "Option Explicit" is usually recommended for all scripts. Also, you will not benefit from Intellisense (automatic suggestion of methods and properties) when working with MindManager 2020 objects, because their type will not be known in advance - they will be late bound. Any gains from skipping the declaration of a variable are quickly lost when it comes to debugging, as you might accidentally use an inconsistent name for what should be the same variable, which can be very hard to spot. ![]() ![]() If you do not include this directive, then the code will allow you to use variants without saying what data type they are. "Option Explicit": this directive tells WinWrap Basic that you will be declaring all named variables with their type before using them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |