![]() The CentralTopic property returns the topic pointer of the topic that is at the centre of the map. Text = "Macro tutorial"": CentralTopic is a property of the document object, and we are already in the document context with the With. End With construct means that everything between these lines has the context of the new document object, so we don't need to assign it to a variable and reference it. "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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |