Sorry if the title is a little confusing,
I am trying to have a procedure that containts a proxy text that will be replaced after, but the only way I can create the procedure is if I declare the variable inside the procedure and that ruins my intention
// Create variable
string $vartest = "test";
// Check print
print $vartest;
// Rename the text inside the variable
$vartest = `substituteAllString $vartest "test" "test_2"`;
// Check print again
print $vartest;
// Declare a procedure / DOESN'T WORK /
proc procTest()
{
print $vartest;
}
// Test proc
procTest();
//////////////////////////////////
I need to not declare the variable inside the procedure because I want to have just one big code with all my procedures with a "proxy test" and then for each buttom I'll change the text inside the variable. Is there a clean way to do that?
Replies
Sorry if it was a little dificult to make me understand how it works