How do I pass a variable with CallFunctionByNameWithArguments?

I know that it is possible to pass on arguments like this,


this->CallFunctionByNameWithArguments(TEXT("AddItemToList ListEntryName"), ar, NULL, true);

But when done like that, it is just the text ListEntryName, and not the text that it has been set to.
I need to be able to pass a variable that is set in the cpp file for the system to work as intended. There is no need to pass an entire array though