KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: A reason to leave methods open
PRODUCT: 4D | VERSION: 12 | PLATFORM: Mac & Win
Published On: January 31, 2012
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

In Design Mode, it is possible to keep method windows open or to close them when they may no longer be needed. One reason to leave methods open when developing is that it facilitates navigating through nested method calls.

If a method is open and a project method is highlighted within the method, then hitting the Open Method keyboard shortcut ( Win: Ctrl + K, Mac:Command + K). So by leaving a method open and leaving project methods highlighted, navigating from one method, through a chain of multiple methods can be as simple as hitting the Open Method keyboard shortcut multiple times.

Take the following scenario:

Within a database there is a group of methods that involve index checking. Within this group of methods, there is the following project method call chain:

Index_execute -> Index_rebuild -> Index_composite_helper -> Index_getType

In this scenario, if all the methods were open and the project methods in this call chain were highlighted, then navigating from Index_execute to Index_getType would be as simple as hitting the Open Method keyboard shortcut 3 times.