resourceStr Function

Validates that the specified resource is in the AOT; if not, a compiler error occurs.


str resourceStr(str resourcename)

Parameter

Description

resourcename

The name of the resource to validate.

The name of the specified resource if valid.

This function is an intrinsic function, which is a metadata assertion function. Intrinsic functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.

{
    print "Str for resource StyleSheet_Help_Axapta is " 
        + resourceStr(StyleSheet_Help_Axapta);
    pause;
}

Community Additions

ADD
Show: