varStr Function

Converts to a string representing the name of a variable.


str varStr(int var)

Parameter

Description

var

The name of the variable

Use this instead of literal text when you want to store a variable name. When you use varStr the system checks whether the argument is a valid variable before the conversion.

static void varStrExample(Args _arg)
{
    str s;
    int someVar;
    ;
    s = varStr(someVar);
    print "varStr of parameter is " + s;
    pause;
}

Community Additions

ADD
Show: