2010-08-04

Current Method Name in REALbasic

To get the name of a method executing at runtime, call this not-so-surprising command:
CurrentMethodName

This is handy for reporting and logging errors, as well as debugging. For example:

MsgBox "Something has gone wrong in method: " + CurrentMethodName

No comments:

Post a Comment