KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Looking inwards: How many methods exist in the application
PRODUCT: 4D | VERSION: 15.2 | PLATFORM: Mac & Win
Published On: March 7, 2016

Here is a code snippet that returns the total number methods that are found within the application:

// UTIL_CountMethods
// returns the number of methods in the application
ARRAY TEXT($MethodNames_at;0)
METHOD GET NAMES($MethodNames_at;*)
$0:=Size of array($MethodNames_at)


If the code snippet above is saved as UTIL_CountMethods then it could be used like this:
ALERT(String(UTIL_CountMethods )+" methods found.")