getPrefix Function

Retrieves the current execution prefix after successive calls to the setPrefix function.


str getPrefix()

The current execution prefix.

The prefix mechanism makes it more straightforward to write precise error messages about the transactions performed by an application. Because it creates a hierarchical display in the Infolog, it can be easier to determine where each error came from.

static void getPrefixExample(Args _arg)
{
    ;
    setPrefix("Prefix");
    setPrefix("Another prefix");
    print getPrefix();
    pause;
}

Community Additions

ADD
Show: